diff --git a/lib/utils/webpack.config.js b/lib/utils/webpack.config.js index 3288a2eb3aafa..13b17c397853e 100644 --- a/lib/utils/webpack.config.js +++ b/lib/utils/webpack.config.js @@ -115,15 +115,15 @@ module.exports = (program, directory, suppliedStage, webpackPort = 1500, pages = // the numerical IDs aren't useful. In production we use numerical module // ids to reduce filesize. new webpack.NamedModulesPlugin(), - new HardSourceWebpackPlugin({ - cacheDirectory: `${process.cwd()}/.cache/[confighash]`, - configHash: (webpackConfig) => stage, - environmentPaths: { - root: process.cwd(), - directories: ['node_modules'], - files: ['package.json'], - }, - }), + //new HardSourceWebpackPlugin({ + //cacheDirectory: `${process.cwd()}/.cache/[confighash]`, + //configHash: (webpackConfig) => stage, + //environmentPaths: { + //root: process.cwd(), + //directories: ['node_modules'], + //files: ['package.json'], + //}, + //}), ] case `build-css`: return [ @@ -135,15 +135,15 @@ module.exports = (program, directory, suppliedStage, webpackPort = 1500, pages = __LINK_PREFIX__: JSON.stringify(siteDB().get(`config`).linkPrefix), }), new ExtractTextPlugin(`styles.css`, { allChunks: true }), - new HardSourceWebpackPlugin({ - cacheDirectory: `${process.cwd()}/.cache/[confighash]`, - configHash: (webpackConfig) => stage, - environmentPaths: { - root: process.cwd(), - directories: ['node_modules'], - files: ['package.json'], - }, - }), + //new HardSourceWebpackPlugin({ + //cacheDirectory: `${process.cwd()}/.cache/[confighash]`, + //configHash: (webpackConfig) => stage, + //environmentPaths: { + //root: process.cwd(), + //directories: ['node_modules'], + //files: ['package.json'], + //}, + //}), ] case `build-html`: return [ @@ -156,15 +156,15 @@ module.exports = (program, directory, suppliedStage, webpackPort = 1500, pages = __LINK_PREFIX__: JSON.stringify(siteDB().get(`config`).linkPrefix), }), new ExtractTextPlugin(`build-html-styles.css`), - new HardSourceWebpackPlugin({ - cacheDirectory: `${process.cwd()}/.cache/[confighash]`, - configHash: (webpackConfig) => stage, - environmentPaths: { - root: process.cwd(), - directories: ['node_modules'], - files: ['package.json'], - }, - }), + //new HardSourceWebpackPlugin({ + //cacheDirectory: `${process.cwd()}/.cache/[confighash]`, + //configHash: (webpackConfig) => stage, + //environmentPaths: { + //root: process.cwd(), + //directories: ['node_modules'], + //files: ['package.json'], + //}, + //}), ] case `build-javascript`: { // Get array of page template component names. @@ -248,15 +248,15 @@ module.exports = (program, directory, suppliedStage, webpackPort = 1500, pages = events: true, }, }), - new HardSourceWebpackPlugin({ - cacheDirectory: `${process.cwd()}/.cache/[confighash]`, - configHash: (webpackConfig) => stage, - environmentPaths: { - root: process.cwd(), - directories: ['node_modules'], - files: ['package.json'], - }, - }), + //new HardSourceWebpackPlugin({ + //cacheDirectory: `${process.cwd()}/.cache/[confighash]`, + //configHash: (webpackConfig) => stage, + //environmentPaths: { + //root: process.cwd(), + //directories: ['node_modules'], + //files: ['package.json'], + //}, + //}), ] } default: