mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-15 09:46:06 +01:00
Enabling sourcemaps for minified JS
This commit is contained in:
3
themes/grav/gulpfile.js
vendored
3
themes/grav/gulpfile.js
vendored
@@ -28,12 +28,13 @@ var plugins = {
|
||||
}),
|
||||
|
||||
prod: base.mergeDeep({
|
||||
devtool: 'source-map',
|
||||
plugins: [
|
||||
new webpack.DefinePlugin({
|
||||
'process.env': { NODE_ENV: '"production"' }
|
||||
}),
|
||||
new webpack.optimize.UglifyJsPlugin({
|
||||
sourceMap: false,
|
||||
sourceMap: true,
|
||||
compress: {
|
||||
warnings: false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user