forked from cornerstonejs/cornerstone
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the project to Webpack4 (cornerstonejs#248)
* Try to upgrade to Webpack 4. Seems broken * Switch branch to my Webpack fork for testing * Updating Webpack: Switch to latest webpack version * Bump versions of dependencies * Add uglify plugin, remove dist again
- Loading branch information
Showing
6 changed files
with
2,567 additions
and
469 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 |
---|---|---|
@@ -1,15 +1,22 @@ | ||
const webpack = require('webpack'); | ||
const merge = require('./merge'); | ||
const baseConfig = require('./webpack-base'); | ||
const UglifyJSPlugin = require('uglifyjs-webpack-plugin'); | ||
|
||
const devConfig = { | ||
output: { | ||
filename: '[name].min.js' | ||
}, | ||
plugins: [ | ||
new webpack.optimize.UglifyJsPlugin({ | ||
sourceMap: true | ||
}) | ||
] | ||
mode: "production", | ||
optimization: { | ||
minimizer: [ | ||
new UglifyJSPlugin({ | ||
uglifyOptions: { | ||
sourceMap: true | ||
} | ||
}) | ||
] | ||
}, | ||
}; | ||
|
||
module.exports = merge(baseConfig, devConfig); | ||
module.exports = merge(baseConfig, devConfig); |
Oops, something went wrong.