Added source maps

master
Keith Irwin 2017-09-26 01:29:25 +00:00
parent 5307c88835
commit 64c7a047fe
No known key found for this signature in database
GPG Key ID: 378933C743E2BBC0
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,5 @@
const path = require('path'),
env = require('./config/env/env.js'),
uglifyJsPlugin = require('uglifyjs-webpack-plugin');
module.exports = {
@ -16,6 +17,9 @@ module.exports = {
password: './static/js/password.js'
},
// Sourcemaps
devtool: (env.mode=='development')?'source-map':false,
// Output format
output: {
filename: '.[name].bun.js',
@ -25,6 +29,6 @@ module.exports = {
plugins: [
// Minimize JS
new uglifyJsPlugin()
],
]
};