mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 22:20:55 +03:00
sourcemaps for prod cuz why not
This commit is contained in:
@@ -21,7 +21,8 @@ const serviceWorker = {
|
|||||||
filename: '[name].js',
|
filename: '[name].js',
|
||||||
path: path.resolve(__dirname, 'dist'),
|
path: path.resolve(__dirname, 'dist'),
|
||||||
publicPath: '/'
|
publicPath: '/'
|
||||||
}
|
},
|
||||||
|
devtool: 'source-map'
|
||||||
};
|
};
|
||||||
|
|
||||||
const web = {
|
const web = {
|
||||||
@@ -181,6 +182,7 @@ const web = {
|
|||||||
new VersionPlugin(),
|
new VersionPlugin(),
|
||||||
new ManifestPlugin() // used by server side to resolve hashed assets
|
new ManifestPlugin() // used by server side to resolve hashed assets
|
||||||
],
|
],
|
||||||
|
devtool: 'source-map',
|
||||||
devServer: {
|
devServer: {
|
||||||
before: require('./server/bin/dev'),
|
before: require('./server/bin/dev'),
|
||||||
compress: true,
|
compress: true,
|
||||||
@@ -204,8 +206,6 @@ module.exports = (env, argv) => {
|
|||||||
// istanbul instruments the source for code coverage
|
// istanbul instruments the source for code coverage
|
||||||
webJsOptions.plugins.push('istanbul');
|
webJsOptions.plugins.push('istanbul');
|
||||||
web.entry.tests = ['./test/frontend/index.js'];
|
web.entry.tests = ['./test/frontend/index.js'];
|
||||||
web.devtool = 'source-map';
|
|
||||||
serviceWorker.devtool = 'source-map';
|
|
||||||
}
|
}
|
||||||
return [web, serviceWorker];
|
return [web, serviceWorker];
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user