Coder Social home page Coder Social logo

Comments (6)

AlanSean avatar AlanSean commented on May 18, 2024

下载 并配置 copy-webpack-plugin
就可以了写link或者script引入的时候写相对路径(看你如何配置了)

from vue-multiple-pages.

Plortinus avatar Plortinus commented on May 18, 2024

项目中,我都是建好一个文件目录,然后无限复制,这样就变相的引入公共样式...
静态文件,就得靠copy-webpack-plugin这个插件了

from vue-multiple-pages.

AlanSean avatar AlanSean commented on May 18, 2024

你是直接在page里面写了一个css文件夹l来进行引用?

from vue-multiple-pages.

Plortinus avatar Plortinus commented on May 18, 2024

公共样式文件我是写在assets目录下,然后在app.js里引用

from vue-multiple-pages.

AlanSean avatar AlanSean commented on May 18, 2024

我现在遇到的问题就是
link问题 html里面写了link引入assets里面清除默认样式的文件 ExtractTextPlugin会报错
很搞不懂 我已经copy了 难道ExtractTextPlugin也需要设置忽略某些文件吗 刚研究第三天 很揪心

from vue-multiple-pages.

AlanSean avatar AlanSean commented on May 18, 2024

现在又遇到的问题 我只写了一个html vue js 文件 然后打包会Cannot read property 'call' of undefined
这是为啥 是因为CommonsChunkPlugin 必须两个页面以上才可以吗 但是在线运行是没问题的

from vue-multiple-pages.

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.