mics
Version:
Multiple Inheritance Class System: Intuitive mixins for ES6 classes
32 lines (27 loc) • 698 B
JavaScript
var path = require('path');
var webpack = require('webpack');
module.exports = {
// The base directory (absolute path!) for resolving the entry option.
// If output.pathinfo is set, the included pathinfo is shortened to this directory.
context: path.resolve('src'),
module: {
loaders: [
{
test: /\.js/,
exclude: /node_modules/,
loader: 'babel-loader',
options: process.env['ES_MODULE'] ? {
// Options to configure babel. overrides .babelrc with modules=false
presets: [['es2015', {modules:false}]]
} : {}
},
],
noParse: /\.min\.js/,
},
devtool: 'source-map',
devServer: {
stats: {
chunks: false,
}
}
};