Add worker loader to the examples

This commit is contained in:
Tim Schaub
2019-05-15 16:49:38 -06:00
parent e307410301
commit 05f13bb363
4 changed files with 71 additions and 1 deletions

View File

@@ -19,16 +19,25 @@ module.exports = {
context: src,
target: 'web',
entry: entry,
stats: 'minimal',
module: {
rules: [{
test: /\.js$/,
use: {
loader: 'buble-loader'
},
test: /\.js$/,
include: [
path.join(__dirname, '..', '..', 'src'),
path.join(__dirname, '..')
]
}, {
test: /\.js$/,
use: {
loader: path.join(__dirname, './worker-loader.js')
},
include: [
path.join(__dirname, '../../src/ol/worker')
]
}]
},
optimization: {