Skip to content

Commit

Permalink
Remove hash from webworker
Browse files Browse the repository at this point in the history
  • Loading branch information
furstenheim committed Jan 15, 2017
1 parent d3db3fe commit c88091d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"karma-webpack": "^1.8.0",
"mocha": "^3.0.2",
"sinon": "2.0.0-pre.4",
"webpack": "^1.13.2",
"webpack": "^2.2.0-rc.4",
"webpack-dev-server": "^1.16.2",
"worker-loader": "^0.7.1"
},
Expand Down
18 changes: 15 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
output: {
path: path.join(__dirname, '/dist'),
filename: 'app-bundle.js',
publicPath: '/dist'
publicPath: '/dist/'
},
devServer: {
contentBase: './',
Expand All @@ -18,12 +18,24 @@ module.exports = {
{
test: /\.js$/,
include: [path.join(__dirname, 'index'), path.join(__dirname, 'src')],
loader: 'babel',
loader: 'babel-loader',
query: {
plugins: ['transform-async-to-generator', 'meaningful-logs']
}
}
]
}
},
plugins: [
new webpack.LoaderOptionsPlugin({
options: {
worker: {
output: {
filename: 'worker.js',
chunkFilename: '[id].worker.js'
}
}
}
})
]
//watch: true
}

0 comments on commit c88091d

Please sign in to comment.