Coder Social home page Coder Social logo

提取公共head about vue-cli-multi-page HOT 4 OPEN

bluefox1688 avatar bluefox1688 commented on July 17, 2024
提取公共head

from vue-cli-multi-page.

Comments (4)

bluefox1688 avatar bluefox1688 commented on July 17, 2024

这个我倒没有尝试过,有时间可以看看,或者你先谷歌看看也OK

from vue-cli-multi-page.

iamzeki avatar iamzeki commented on July 17, 2024

@bluefox1688 我修改了一下你的配置,修改了HtmlWebpackPlugin的template,把template指向一个公共的html文件。 如下,可以解决不用在views里面每开一个模块就新建一个html页面。
image
image
修改后的views目录无需再新建html页面:
image

from vue-cli-multi-page.

Dowgen avatar Dowgen commented on July 17, 2024

@ziqink 老哥,这样改的话,是不是每次在新地方npm install 完之后都要改一下啊

from vue-cli-multi-page.

smvv21 avatar smvv21 commented on July 17, 2024

@ziqink 这个方法不错,我又改进了一下,默认使用公共模版。但如果模块目录下存在自己的html,那就使用自己的html

from vue-cli-multi-page.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.