mountainlab
Version:
MountainLab data analysis environment
35 lines (33 loc) • 628 B
JavaScript
const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: './src/index.js',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'web')
},
module:{
rules:[
{
test: /\.html$/,
use: {
loader: 'html-loader',
options: {
attrs: [':data-src']
}
}
},
{
test: /\.css$/,
use: [ 'style-loader', 'css-loader' ]
}
]
},
optimization: {
minimize:false
},
plugins: [
new webpack.IgnorePlugin(/request/),
new webpack.IgnorePlugin(/^module$/)
]
};