humus-old/webpack.common.config.js
2019-03-20 15:29:00 -05:00

42 lines
755 B
JavaScript

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: {
loader: './generate-traits',
},
},
],
},
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;