mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
20 lines
564 B
JavaScript
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')
|
|
]
|
|
};
|