Skip to content

Instantly share code, notes, and snippets.

@AndrewIngram
Last active August 29, 2015 14:05
Show Gist options
  • Save AndrewIngram/f2f2c0183f39d92be227 to your computer and use it in GitHub Desktop.
Save AndrewIngram/f2f2c0183f39d92be227 to your computer and use it in GitHub Desktop.
var webpack = require("webpack");
var ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
entry: {
library: './static/js/library'
},
output: {
path: 'mediacat/static/mediacat/',
filename: '[name].js'
},
module: {
loaders: [
{
test: /\.jsx$/, loaders: ['jsx?harmony']
},
{
test: /\.scss$/,
loaders: [
'style-loader',
ExtractTextPlugin.loader({remove:true}),
'css-loader',
'autoprefixer-loader',
'sass-loader?precision=10&outputStyle=expanded&sourceMap=true',
]
}
]
},
plugins: [
new ExtractTextPlugin("[name].css")
],
resolve: {
extensions: ['', '.js', '.jsx', '.scss']
},
cache: true
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment