vue.config.js 304 B

12345678910111213
  1. module.exports = {
  2. publicPath: process.env.PUBLIC_PATH || "/",
  3. devServer: {
  4. port: 8081,
  5. disableHostCheck: true,
  6. },
  7. chainWebpack: (config) => {
  8. if (process.env.NODE_ENV === "development") {
  9. config.output.filename("[name].[hash].js").end();
  10. }
  11. },
  12. runtimeCompiler: true,
  13. };