Skip to content

Commit

Permalink
bugfix for creating paths with forward slashes instead of backslashes…
Browse files Browse the repository at this point in the history
… on Windows.
  • Loading branch information
Swimburger committed May 18, 2016
1 parent c44356a commit e23a084
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/webpack.prod.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ module.exports = merge(baseWebpackConfig, {
devtool: config.build.productionSourceMap ? '#source-map' : false,
output: {
path: config.build.assetsRoot,
filename: path.join(config.build.assetsSubDirectory, '[name].[chunkhash].js'),
chunkFilename: path.join(config.build.assetsSubDirectory, '[id].[chunkhash].js')
filename: path.join(config.build.assetsSubDirectory, '[name].[chunkhash].js').replace('\\', '/'),
chunkFilename: path.join(config.build.assetsSubDirectory, '[id].[chunkhash].js').replace('\\', '/')
},
vue: {
loaders: cssLoaders({
Expand All @@ -34,7 +34,7 @@ module.exports = merge(baseWebpackConfig, {
}),
new webpack.optimize.OccurenceOrderPlugin(),
// extract css into its own file
new ExtractTextPlugin(path.join(config.build.assetsSubDirectory, '[name].[contenthash].css')),
new ExtractTextPlugin(path.join(config.build.assetsSubDirectory, '[name].[contenthash].css').replace('\\', '/')),
// generate dist index.html with correct asset hash for caching.
// you can customize output by editing /index.html
// see https://github.com/ampedandwired/html-webpack-plugin
Expand Down

0 comments on commit e23a084

Please sign in to comment.