Skip to content

Instantly share code, notes, and snippets.

@roughy
Last active May 23, 2016 16:40
Show Gist options
  • Save roughy/d35f1d3acb69236c848b7ca8d6ba5c06 to your computer and use it in GitHub Desktop.
Save roughy/d35f1d3acb69236c848b7ca8d6ba5c06 to your computer and use it in GitHub Desktop.
Example webpack config file with css loader and dev server proxy.
module.exports = {
entry: "./entry.js",
output: {
path: __dirname,
filename: "bundle.js"
},
devServer: {
proxy: {
'/api/*': 'https://my.backend.local'
}
},
module: {
loaders: [
{ test: /\.css$/, loader: "style!css" }
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment