Created
June 11, 2018 11:39
-
-
Save dushyant89/af10ce69e7aacf816e9ad0f38d366e7d to your computer and use it in GitHub Desktop.
webpack-dev-server config for vue webpack
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
devServer: { | |
// The url you want the webpack-dev-server to use for serving files. | |
host: '0.0.0.0', | |
// Can be the popular 8080 also. | |
port: 8010, | |
// gzip compression | |
compress: true, | |
// Open the browser window, set to false if you are in a headless browser environment. | |
open: false, | |
watchOptions: { | |
ignored: /node_modules/, | |
poll: true, | |
}, | |
// The path you want webpack-dev-server to use for serving files | |
publicPath: '/dist/', | |
// For static assets | |
contentBase: resolve('src/assets'), | |
// Reload for code changes to static assets. | |
watchContentBase: true, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment