tubbsfireinfo.com/webpack.config.js

34 lines
699 B
JavaScript
Raw Permalink Normal View History

2017-10-10 18:45:54 +00:00
const webpack = require('webpack')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const config = {
2017-10-10 20:12:13 +00:00
entry: ['babel-polyfill', './app.js'],
2017-10-10 18:45:54 +00:00
output: {
path: __dirname,
filename: 'build.js',
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /(node_modules)/,
loader: 'babel-loader',
},
{
test: /\.scss$/,
use: ExtractTextPlugin.extract({
fallback: 'style-loader',
use: ['css-loader', 'sass-loader'],
}),
},
],
},
2017-10-10 20:12:13 +00:00
plugins: [
new ExtractTextPlugin('output.css'),
new webpack.IgnorePlugin(/\.\/locale$/),
],
2017-10-10 20:43:21 +00:00
// devtool: 'eval',
2017-10-10 18:45:54 +00:00
}
module.exports = config