Files
JavaScriptServices/samples/react/ReactGrid/webpack.config.js
SteveSandersonMS f693bd60e3 Initial state
2015-11-02 10:30:36 -08:00

20 lines
564 B
JavaScript

var ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
entry: './ReactApp/boot-client.jsx',
output: {
path: './wwwroot',
filename: 'bundle.js'
},
module: {
loaders: [
{ test: /\.jsx?$/, loader: 'babel-loader' },
{ test: /\.css$/, loader: ExtractTextPlugin.extract('style-loader', 'css-loader') },
{ test: /\.(png|woff|woff2|eot|ttf|svg)$/, loader: 'url-loader?limit=100000' }
]
},
plugins: [
new ExtractTextPlugin('main.css')
]
};