You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
516 B
25 lines
516 B
// webpack.config.js for Babel 6
|
|
var path = require('path');
|
|
var webpack = require('webpack');
|
|
require("babel-polyfill");
|
|
|
|
module.exports = {
|
|
entry: ["babel-polyfill", './frontend/index.jsx'],
|
|
output: { path: __dirname + '/public/js', filename: 'app.js' },
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /.jsx?$/,
|
|
loader: 'babel-loader',
|
|
exclude: /node_modules/
|
|
},
|
|
{
|
|
test: /\.css$/,
|
|
loader: 'css-loader',
|
|
}
|
|
],
|
|
},
|
|
optimization: {
|
|
minimize: false
|
|
},
|
|
};
|
|
|