This repository has been archived by the owner on Apr 13, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5195e3
commit 558d924
Showing
4 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* eslint-env node */ | ||
|
||
const merge = require( 'webpack-merge' ); | ||
const common = require( './webpack.common.js' ); | ||
|
||
module.exports = merge( common, { | ||
devtool: 'inline-source-map' | ||
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* eslint-env node */ | ||
|
||
const webpack = require( 'webpack' ); | ||
const merge = require( 'webpack-merge' ); | ||
const common = require( './webpack.common.js' ); | ||
const UglifyJSPlugin = require( 'uglifyjs-webpack-plugin' ); | ||
|
||
module.exports = merge( common, { | ||
devtool: 'source-map', | ||
plugins: [ | ||
new UglifyJSPlugin( { | ||
sourceMap: true, | ||
} ), | ||
new webpack.DefinePlugin( { | ||
'process.env.NODE_ENV': JSON.stringify( 'production' ), | ||
} ), | ||
], | ||
} ); |