Limit requests sent to webpack middleware

This commit is contained in:
Tim Schaub
2018-11-10 09:35:32 -07:00
parent 0ebc023223
commit 7dc5bf3e8d
3 changed files with 23 additions and 33 deletions

View File

@@ -1,4 +1,3 @@
const CopyPlugin = require('copy-webpack-plugin');
const fs = require('fs');
const path = require('path');
@@ -15,22 +14,5 @@ module.exports = {
context: __dirname,
target: 'web',
entry: entry,
module: {
rules: [{
use: {
loader: 'buble-loader'
},
test: /\.js$/,
include: [
path.join(__dirname, '..', 'src')
]
}]
},
plugins: [
new CopyPlugin([
{from: '../src/ol/ol.css', to: 'css'},
{from: 'cases/**/*.html'}
])
],
devtool: 'source-map'
};