Skip to content

Instantly share code, notes, and snippets.

@marr
Created February 11, 2015 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marr/0c9cc2362c66fff047c2 to your computer and use it in GitHub Desktop.
Save marr/0c9cc2362c66fff047c2 to your computer and use it in GitHub Desktop.
var webpack = require('webpack'),
bourbon = require('node-bourbon').includePaths;
var envPlugin = new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify(process.env.NODE_ENV || 'development')
}
});
module.exports = {
resolve: {
extensions: ['', '.js', '.jsx']
},
module: {
loaders: [
{ test: /\.jsx?$/, loader: 'jsx-loader?harmony&stripTypes' },
{ test: /\.scss?$/, loader: 'style!css!sass?outputStyle=expanded&includePaths[]=' +
bourbon }
]
},
entry: {
'demo': './init.js'
},
output: {
path: require('path').resolve('./assets'),
publicPath: 'http://localhost:7002/assets/'
},
plugins: [ envPlugin ]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment