commit 8e1dd96ad9a3301560a79aa3e6231e5cbc5112a8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sun Feb 5 20:50:50 2017 +0000 Update changelog commit 2d5eae57534f40d6f768ab92e46123d45b85f23d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sun Feb 5 20:47:21 2017 +0000 Link to correct js files, also pre-compress js assets commit 281844d09ced2035da05336d6a47399e3cf6a92a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sun Feb 5 20:31:12 2017 +0000 Adding a links util
35 lines
657 B
JavaScript
35 lines
657 B
JavaScript
const webpack = require('webpack');
|
|
|
|
const config = {
|
|
context: __dirname + '/resources/assets/es6',
|
|
entry: {
|
|
//app: './app.js',
|
|
links: './links.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;
|