mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-15 17:56:07 +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({
|
prod: base.mergeDeep({
|
||||||
|
devtool: 'source-map',
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
'process.env': { NODE_ENV: '"production"' }
|
'process.env': { NODE_ENV: '"production"' }
|
||||||
}),
|
}),
|
||||||
new webpack.optimize.UglifyJsPlugin({
|
new webpack.optimize.UglifyJsPlugin({
|
||||||
sourceMap: false,
|
sourceMap: true,
|
||||||
compress: {
|
compress: {
|
||||||
warnings: false
|
warnings: false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user