happypack
Version:
webpack speed booster, makes you happy!
24 lines (20 loc) • 470 B
JavaScript
var path = require('path');
var ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
entry: path.resolve(__dirname, 'lib/index.css'),
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].raw.js'
},
plugins: [
new ExtractTextPlugin("styles.raw.css")
],
module: {
loaders: [
{
test: /\.css$/,
loader: ExtractTextPlugin.extract("style-loader", "css-loader"),
}
]
}
};