Skip to content

Instantly share code, notes, and snippets.

@patrickhulce
Last active August 27, 2015 05:59
Show Gist options
  • Save patrickhulce/4f5cf11d64ad8a4a13b5 to your computer and use it in GitHub Desktop.
Save patrickhulce/4f5cf11d64ad8a4a13b5 to your computer and use it in GitHub Desktop.
webpack intro
var webpack = require('webpack');
module.exports = {
entry: {
app: './entry.js'
},
output: {
path: __dirname,
publicPath: '/assets/',
filename: "[name].bundle.js"
},
module: {
loaders: [
{ test: /\.less$/, loader: "style!css!less" },
{ test: /\.jpg$/, loader: "url-loader?limit=10000" },
{ test: /\.html$/, loader: "html" }
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment