vue.config.js 367 B

123456789101112131415161718
  1. const BASE_URL = './'
  2. var webpack = require("webpack")
  3. module.exports = {
  4. publicPath: process.env.NODE_ENV === "production" ? BASE_URL : "./",
  5. configureWebpack:{
  6. plugins:[
  7. new webpack.ProvidePlugin({
  8. $:"jquery",
  9. jQuery:"jquery",
  10. "windows.jQuery":"jquery"
  11. })
  12. ]
  13. }
  14. }