kn-cli 1.0.136 → 1.0.137
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/webpack.config.js +2 -1
- package/package.json +1 -1
package/build/webpack.config.js
CHANGED
|
@@ -11,7 +11,7 @@ const TerserPlugin = require('terser-webpack-plugin');
|
|
|
11
11
|
const CopyPlugin = require('copy-webpack-plugin');
|
|
12
12
|
const ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
|
|
13
13
|
const NowDateTime = Date.now();
|
|
14
|
-
|
|
14
|
+
|
|
15
15
|
|
|
16
16
|
//////////// CONFIG ENV ///////////////
|
|
17
17
|
const API_CONFIG = require('./webpack.api.js');
|
|
@@ -481,6 +481,7 @@ if(cssSplitMode){
|
|
|
481
481
|
}
|
|
482
482
|
|
|
483
483
|
if(CLI_CONFIG?.hardSourceWebpackPlugin){
|
|
484
|
+
var HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
|
|
484
485
|
const cacheDir = path.resolve(dirname, '.webpack_cache/[confighash]')
|
|
485
486
|
warn(`hardSourceWebpackPlugin cacheDir:${cacheDir}`);
|
|
486
487
|
plugins.push(
|