Created
November 23, 2015 04:38
-
-
Save Teino1978-Corp/f78f304469e0d4e892cd to your computer and use it in GitHub Desktop.
webpack intro
This file contains hidden or 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