upgrade webpack-cli to v4
added dev dep source-map-loader
This commit is contained in:
parent
5071aedcea
commit
f15f6ec9b8
3 changed files with 39 additions and 4 deletions
|
@ -19,12 +19,17 @@ module.exports = merge(common, {
|
|||
{
|
||||
test: /\.js$/,
|
||||
exclude: /node_modules[\\/](?!date-fns|epubjs|query-string|split-on-first)/,
|
||||
use: {
|
||||
use: [{
|
||||
loader: 'babel-loader',
|
||||
options: {
|
||||
presets: packageConfig.babel.presets
|
||||
}
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
test: /\.js$/,
|
||||
enforce: 'pre',
|
||||
use: ['source-map-loader']
|
||||
},
|
||||
{
|
||||
test: /\.css$/i,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue