Skip to content

Commit

Permalink
Disable hard-source-webpack-plugin
Browse files Browse the repository at this point in the history
Too buggy right now and it's speed boost not strictly necessary when
devving — correctness / ease of debugging more important right now.
  • Loading branch information
KyleAMathews committed Nov 2, 2016
1 parent 8cfbd31 commit 4bc9660
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions lib/utils/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand All @@ -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 [
Expand All @@ -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.
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 4bc9660

Please sign in to comment.