Skip to content

Instantly share code, notes, and snippets.

@dushyant89
Created June 11, 2018 11:39
Show Gist options
  • Save dushyant89/af10ce69e7aacf816e9ad0f38d366e7d to your computer and use it in GitHub Desktop.
Save dushyant89/af10ce69e7aacf816e9ad0f38d366e7d to your computer and use it in GitHub Desktop.
webpack-dev-server config for vue webpack
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