mirror of
https://github.com/scratchfoundation/scratch-storage.git
synced 2025-08-13 06:51:17 -04:00
Upgrade to Webpack 2
This commit is contained in:
parent
8096f2321b
commit
0bb5f2f30f
2 changed files with 5 additions and 12 deletions
|
@ -3,20 +3,16 @@ const webpack = require('webpack');
|
|||
|
||||
const base = {
|
||||
module: {
|
||||
loaders: [
|
||||
rules: [
|
||||
{
|
||||
include: [
|
||||
path.resolve(__dirname, 'src')
|
||||
],
|
||||
test: /\.js$/,
|
||||
loader: 'babel-loader',
|
||||
query: {
|
||||
options: {
|
||||
presets: ['es2015']
|
||||
}
|
||||
},
|
||||
{
|
||||
test: /\.json$/,
|
||||
loader: 'json-loader'
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -24,9 +20,7 @@ const base = {
|
|||
new webpack.optimize.UglifyJsPlugin({
|
||||
include: /\.min\.js$/,
|
||||
minimize: true,
|
||||
compress: {
|
||||
warnings: false
|
||||
}
|
||||
sourceMap: true
|
||||
})
|
||||
]
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue