From 4bc9660ac8c371d23c0295cde52002775eee5aa1 Mon Sep 17 00:00:00 2001 From: Kyle Mathews Date: Tue, 1 Nov 2016 17:14:15 -0700 Subject: [PATCH] Disable hard-source-webpack-plugin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Too buggy right now and it's speed boost not strictly necessary when devving — correctness / ease of debugging more important right now. --- lib/utils/webpack.config.js | 72 ++++++++++++++++++------------------- 1 file changed, 36 insertions(+), 36 deletions(-) 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: