Upgrade Webpacker to version 2.0 (#3729)
This commit is contained in:
parent
94d0e012de
commit
53e42bf91e
17 changed files with 241 additions and 128 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
const merge = require('webpack-merge');
|
||||
const sharedConfig = require('./shared.js');
|
||||
const { settings, output } = require('./configuration.js');
|
||||
|
||||
module.exports = merge(sharedConfig, {
|
||||
devtool: 'cheap-module-eval-source-map',
|
||||
|
@ -13,4 +14,19 @@ module.exports = merge(sharedConfig, {
|
|||
output: {
|
||||
pathinfo: true,
|
||||
},
|
||||
|
||||
devServer: {
|
||||
clientLogLevel: 'none',
|
||||
https: settings.dev_server.https,
|
||||
host: settings.dev_server.host,
|
||||
port: settings.dev_server.port,
|
||||
contentBase: output.path,
|
||||
publicPath: output.publicPath,
|
||||
compress: true,
|
||||
headers: { 'Access-Control-Allow-Origin': '*' },
|
||||
historyApiFallback: true,
|
||||
watchOptions: {
|
||||
ignored: /node_modules/,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue