Limit requests sent to webpack middleware
This commit is contained in:
@@ -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'
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user