temptest/webpack.config.js
2017-11-08 00:51:34 +00:00

21 lines
524 B
JavaScript

const webpack = require('webpack');
const path = require('path');
const BUILD_DIR = path.resolve(__dirname, 'src/react/public');
const APP_DIR = path.resolve(__dirname, 'src/react/js');
const config = {
entry: APP_DIR + '/app.js',
output: {
path: BUILD_DIR,
filename: 'bundle.js'
},
module: {
loaders: [
{ test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/ },
{ test: /\.jsx$/, loader: 'babel-loader', exclude: /node_modules/ }
]
}
};
module.exports = config;