Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@anildigital
Created July 6, 2015 15:31
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 anildigital/a791ce0316d0d13d9f5a to your computer and use it in GitHub Desktop.
Save anildigital/a791ce0316d0d13d9f5a to your computer and use it in GitHub Desktop.
var ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
entry: {
javascript: './public/javascripts/app.jsx'
},
output: {
path: __dirname + "/public",
filename: 'bundle.js'
},
resolve: {
extensions: ['', '.js', '.jsx']
},
module: {
loaders: [
{
test: /\.jsx$/,
loaders: ["babel-loader"]
},
{
test: /\.less$/,
loader: ExtractTextPlugin.extract(
'css?sourceMap!' +
'less?sourceMap'
)
},
{ test: /\.(png|jpg|svg)$/,
loader: 'url-loader?limit=8192'
}
]
},
plugins: [
new ExtractTextPlugin('bundle.css')
],
devtool: '#inline-source-map'
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment