mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-12 10:14:02 +02:00
update webpack config
This commit is contained in:
@@ -72,6 +72,7 @@
|
|||||||
"style-loader": "^0.20.2",
|
"style-loader": "^0.20.2",
|
||||||
"to-camel-case": "^1.0.0",
|
"to-camel-case": "^1.0.0",
|
||||||
"to-title-case": "^1.0.0",
|
"to-title-case": "^1.0.0",
|
||||||
|
"uglifyjs-webpack-plugin": "^1.1.8",
|
||||||
"webpack": "^3.11.0",
|
"webpack": "^3.11.0",
|
||||||
"webpack-dev-server": "^2.11.1",
|
"webpack-dev-server": "^2.11.1",
|
||||||
"yaml-js": "^0.2.0"
|
"yaml-js": "^0.2.0"
|
||||||
|
@@ -4,6 +4,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin')
|
|||||||
const HtmlWebpackTemplate = require('html-webpack-template')
|
const HtmlWebpackTemplate = require('html-webpack-template')
|
||||||
const ExtractTextPlugin = require('extract-text-webpack-plugin')
|
const ExtractTextPlugin = require('extract-text-webpack-plugin')
|
||||||
const CopyWebpackPlugin = require('copy-webpack-plugin')
|
const CopyWebpackPlugin = require('copy-webpack-plugin')
|
||||||
|
const UglifyJSPlugin = require('uglifyjs-webpack-plugin')
|
||||||
|
|
||||||
const NamedModulesPlugin = webpack.NamedModulesPlugin
|
const NamedModulesPlugin = webpack.NamedModulesPlugin
|
||||||
const HotModuleReplacementPlugin = webpack.HotModuleReplacementPlugin
|
const HotModuleReplacementPlugin = webpack.HotModuleReplacementPlugin
|
||||||
@@ -62,6 +63,7 @@ const config = {
|
|||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
IS_PROD && new CopyWebpackPlugin(['examples/CNAME']),
|
IS_PROD && new CopyWebpackPlugin(['examples/CNAME']),
|
||||||
|
IS_PROD && new UglifyJSPlugin({ sourceMap: true }),
|
||||||
IS_DEV && new NamedModulesPlugin(),
|
IS_DEV && new NamedModulesPlugin(),
|
||||||
IS_DEV && new HotModuleReplacementPlugin(),
|
IS_DEV && new HotModuleReplacementPlugin(),
|
||||||
].filter(Boolean),
|
].filter(Boolean),
|
||||||
|
@@ -1687,12 +1687,6 @@ clean-css@4.1.x:
|
|||||||
dependencies:
|
dependencies:
|
||||||
source-map "0.5.x"
|
source-map "0.5.x"
|
||||||
|
|
||||||
clean-webpack-plugin@^0.1.18:
|
|
||||||
version "0.1.18"
|
|
||||||
resolved "https://registry.yarnpkg.com/clean-webpack-plugin/-/clean-webpack-plugin-0.1.18.tgz#2e2173897c76646031bff047c14b9c22c80d8c4a"
|
|
||||||
dependencies:
|
|
||||||
rimraf "^2.6.1"
|
|
||||||
|
|
||||||
cli-cursor@^2.1.0:
|
cli-cursor@^2.1.0:
|
||||||
version "2.1.0"
|
version "2.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5"
|
resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5"
|
||||||
|
Reference in New Issue
Block a user