Last active
August 27, 2015 05:59
-
-
Save patrickhulce/4f5cf11d64ad8a4a13b5 to your computer and use it in GitHub Desktop.
webpack intro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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