update web pack config

This commit is contained in:
Casper Lamboo 2018-03-06 17:17:05 +01:00
parent b29198edd4
commit 9a8f96a844

View File

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