mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 03:08:40 +00:00
Enable hot module replacement(HMR) (#1100)
* Use ES6 in static/main.js + Lint static/main.js * Enable hot module replacement(HMR) in webpack-dev-server * Disable no-console in static/main.js * Use seperate entry point/bundle for the test page(/static/main.js)
This commit is contained in:
committed by
Kevin Barabash
parent
603f12df8d
commit
30854eb866
@@ -99,6 +99,7 @@ function createConfig(target /*: Target */, dev /*: boolean */,
|
||||
new webpack.EnvironmentPlugin({
|
||||
NODE_ENV: dev ? 'development' : 'production',
|
||||
}),
|
||||
dev && new webpack.NamedModulesPlugin(),
|
||||
minimize && new UglifyJsPlugin({
|
||||
uglifyOptions: {
|
||||
output: {
|
||||
|
Reference in New Issue
Block a user