1
0
mirror of synced 2025-12-18 13:20:33 +08:00

Dev: Use web worker for performance optimization

This commit is contained in:
surunzi
2018-01-11 15:20:38 +08:00
parent 6365ca2155
commit 7a84c5e024
12 changed files with 1255 additions and 10 deletions

View File

@@ -30,6 +30,17 @@ module.exports = {
},
module: {
loaders: [
{
test: /Worker\.js$/,
use: {
loader: 'worker-loader',
options: {
inline: true,
fallback: true,
name: '[name].js'
}
}
},
{
test: /\.js$/,
exclude: /node_modules/,