Skip to content

Instantly share code, notes, and snippets.

@Teino1978-Corp
Created November 23, 2015 04:38
Show Gist options
  • Save Teino1978-Corp/f78f304469e0d4e892cd to your computer and use it in GitHub Desktop.
Save Teino1978-Corp/f78f304469e0d4e892cd 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