Last active
May 23, 2016 16:40
-
-
Save roughy/d35f1d3acb69236c848b7ca8d6ba5c06 to your computer and use it in GitHub Desktop.
Example webpack config file with css loader and dev server proxy.
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
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