javascript - Gulp package import file path switching between production environment and development environment
怪我咯
怪我咯 2017-06-27 09:19:16
0
2
827

gulpuglifyis packaged forjs,cssand other files introduced in some sourceshtmldistDirectory, please tell me how to do it. You can easily switch the path of importing these packaged files in the development environment and production environment

I have the following questions, I hope you can help me out~

    Does the code
  1. html

    ongitintroduce the packaged path or the previous one?

  2. How to change the path after packaging? At which step do you do this?

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all (2)
黄舟

You can use this plug-in to replace js and css files in html
gulp-html-replace

https://www.npmjs.com/package...

    黄舟

    Are production and local gulp packaged in different packages?

    This requires adding tasks to gulpfile.js (one task for production and testing)

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!