-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.dev.js
More file actions
35 lines (34 loc) · 835 Bytes
/
webpack.dev.js
File metadata and controls
35 lines (34 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
const merge = require('webpack-merge');
const webpack = require('webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const common = require('./webpack.config.js');
module.exports = merge(common, {
mode: 'development',
entry: {
main: './public/src/js/app.js',
router: './public/src/js/router.js',
store: './public/src/js/store.js',
vuetify: './public/src/js/vuetify.js',
},
devtool: 'cheap-module-eval-source-map',
devServer: {
hot: true,
watchOptions: {
poll: true,
ignore: 'node_modules'
}
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new HtmlWebpackPlugin({
filename: 'index.html',
template: 'public/index.html',
inject: true
})
],
optimization: {
splitChunks: {
chunks: 'all'
}
}
});