Skip to content

Instantly share code, notes, and snippets.

@kevinrobinson
Last active November 21, 2015 00:36
Show Gist options
  • Select an option

  • Save kevinrobinson/137338624e16b3ee8ebb to your computer and use it in GitHub Desktop.

Select an option

Save kevinrobinson/137338624e16b3ee8ebb to your computer and use it in GitHub Desktop.
{
...
output: {
path: outputPath,
publicPath: "https://cnd.com/production/js/", // hostname needs to match Rails config
filename: '[name]-[chunkhash].js'
},
plugins: [
new AssetsPlugin({ path: outputPath }),
new webpack.optimize.UglifyJsPlugin(),
new webpack.optimize.OccurenceOrderPlugin(true)
]
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment