@campbell/vueapps

1.0.14 • Public • Published

Documentation

WARNING: files ignored by git could change the hash

WARNING: Make sure to add this in vue.config.js (this might be handled by a vue cli plugin later)

module.exports = {
  // @campbell/vueapps
  outputDir: process.env.CAMPBELL_VUEAPPS_OUTPUT_DIR,
  chainWebpack: (config) => {
    // fix babel cwd
    config.module
      .rule("js")
      .use("babel-loader")
      .loader("babel-loader")
      .tap((options) => {
        return { ...options, cwd: __dirname };
      });
    // fix eslint cwd
    config.module
      .rule("eslint")
      .use("eslint-loader")
      .loader("eslint-loader")
      .tap((options) => {
        return {
          ...options,
          cwd: __dirname,
        };
      });
  },
};

you can add a vueapp.config.js file in your app's root dir :

module.exports = {
  historyApiFallback: true, // default : false
};

WARNING: HMR not working with historyApiFallback

Readme

Keywords

none

Package Sidebar

Install

npm i @campbell/vueapps

Weekly Downloads

1

Version

1.0.14

License

ISC

Unpacked Size

8.53 kB

Total Files

4

Last publish

Collaborators

  • mathistld