update web pack config

This commit is contained in:
Casper Lamboo 2018-03-06 17:17:05 +01:00
parent b29198edd4
commit 9a8f96a844
1 changed files with 7 additions and 1 deletions

View File

@ -53,7 +53,13 @@ module.exports = {
use: 'yml-loader'
}, {
test: /\.worker\.js$/,
use: ['worker-loader', babelLoader]
use: [{
loader: 'worker-loader',
options: {
inline: false,
name: '[name].js'
}
}, babelLoader],
}, {
test: /\.(png|jpg|gif)$/,
use: ['url-loader?name=images/[name].[ext]']