sourcemaps for prod cuz why not

This commit is contained in:
Danny Coates 2018-07-13 11:36:51 -07:00
parent 787d227761
commit 2a63a5b103
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB

View file

@ -21,7 +21,8 @@ const serviceWorker = {
filename: '[name].js',
path: path.resolve(__dirname, 'dist'),
publicPath: '/'
}
},
devtool: 'source-map'
};
const web = {
@ -181,6 +182,7 @@ const web = {
new VersionPlugin(),
new ManifestPlugin() // used by server side to resolve hashed assets
],
devtool: 'source-map',
devServer: {
before: require('./server/bin/dev'),
compress: true,
@ -204,8 +206,6 @@ module.exports = (env, argv) => {
// istanbul instruments the source for code coverage
webJsOptions.plugins.push('istanbul');
web.entry.tests = ['./test/frontend/index.js'];
web.devtool = 'source-map';
serviceWorker.devtool = 'source-map';
}
return [web, serviceWorker];
};