vue.config.js 477 B

1234567891011121314151617
  1. const webpack = require('webpack')
  2. module.exports = {
  3. publicPath: "./",
  4. configureWebpack: {
  5. plugins: [
  6. new webpack.ProvidePlugin({
  7. globalMapState: ['vuex', 'mapState'],
  8. globalMapMutations: ['vuex', 'mapMutations'],
  9. globalMapGetters: ['vuex', 'mapGetters'],
  10. globalConfig: ['/src/config.js', 'default'],
  11. globalApi: ['/src/api.js', 'default'],
  12. globalUtils: ['/src/utils/index.js', 'default'],
  13. }),
  14. ],
  15. },
  16. }