35 lines
632 B
JavaScript
35 lines
632 B
JavaScript
|
const webpack = require('webpack');
|
||
|
|
||
|
const config = {
|
||
|
context: __dirname + '/resources/assets/es6',
|
||
|
entry: {
|
||
|
//app: './app.js',
|
||
|
maps: './maps.js',
|
||
|
newnote: './newnote.js'
|
||
|
},
|
||
|
output: {
|
||
|
path: __dirname + '/public/assets/js',
|
||
|
filename: '[name].js'
|
||
|
},
|
||
|
module: {
|
||
|
loaders: [
|
||
|
{
|
||
|
test: /\.js$/,
|
||
|
exclude: __dirname + '/node_modules/',
|
||
|
loader: 'babel-loader'
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
plugins: [
|
||
|
new webpack.optimize.UglifyJsPlugin({
|
||
|
compress: true,
|
||
|
mangle: {
|
||
|
except: ['fetch', 'map'],
|
||
|
screw_ie8: true
|
||
|
}
|
||
|
})
|
||
|
]
|
||
|
};
|
||
|
|
||
|
module.exports = config;
|