diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2018-05-08 11:02:48 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2018-05-08 11:02:48 +0200 |
| commit | 6305acef3bd25f51b408b38a9f4f11c3040480c5 (patch) | |
| tree | f8d45885f66ef85eb1bd4079034e8bd72fdba0d3 /webpack.config.js | |
| parent | 9f12ba674bb824627ceb648e79a2fa7065a1e51d (diff) | |
| download | brokentalents-6305acef3bd25f51b408b38a9f4f11c3040480c5.tar.gz brokentalents-6305acef3bd25f51b408b38a9f4f11c3040480c5.zip | |
frontend template setup
Diffstat (limited to 'webpack.config.js')
| -rw-r--r-- | webpack.config.js | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 0000000..cfbc07c --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,45 @@ +const VueLoaderPlugin = require('vue-loader/lib/plugin'); +const HtmlWebpackPlugin = require('html-webpack-plugin'); + +module.exports = { + entry: __dirname + '/src/index.js', + output: { + path: __dirname + '/dist/', + filename: 'build.js', + }, + module: { + rules: [ { + test: /\.vue$/, + exclude: /node_modules/, + loader: 'vue-loader', + }, { + test: /\.js$/, + exclude: /node_modules/, + loader: 'babel-loader', + }, { + test: /\.css$/, + use: [ + 'vue-style-loader', + 'css-loader', + 'sass-loader', + ], + }, { + test: /\.scss$/, + use: [ + 'vue-style-loader', + 'css-loader', + 'sass-loader', + ], + } ], + }, + plugins: [ + new VueLoaderPlugin(), + new HtmlWebpackPlugin ({ + template: 'src/index.html', + filename: '../index.html', + }), + new HtmlWebpackPlugin ({ + template: 'src/index.html', + }), + ], +}; |
