humus-old/webpack.common.config.js

42 lines
759 B
JavaScript
Raw Normal View History

2019-03-20 15:28:18 -05:00
const path = require('path');
const webpack = require('webpack');
const config = {
devtool: 'inline-source-map',
mode: 'development',
module: {
rules: [
{
test: /\.js$/,
exclude: [
/(node_modules\/(?!@avocado))/,
],
use: {
loader: 'babel-loader',
},
},
{
test: /register-traits.js/,
use: {
2019-03-20 22:45:57 -05:00
loader: './generate-trait-defs',
2019-03-20 15:28:18 -05:00
},
},
],
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].js',
},
plugins: [
],
resolve: {
modules: [path.resolve(__dirname, 'node_modules')],
},
resolveLoader: {
modules: [path.resolve(__dirname, 'node_modules')],
},
};
module.exports = config;