Comments (6)
下载 并配置 copy-webpack-plugin
就可以了写link或者script引入的时候写相对路径(看你如何配置了)
from vue-multiple-pages.
项目中,我都是建好一个文件目录,然后无限复制,这样就变相的引入公共样式...
静态文件,就得靠copy-webpack-plugin这个插件了
from vue-multiple-pages.
你是直接在page里面写了一个css文件夹l来进行引用?
from vue-multiple-pages.
公共样式文件我是写在assets目录下,然后在app.js里引用
from vue-multiple-pages.
我现在遇到的问题就是
link问题 html里面写了link引入assets里面清除默认样式的文件 ExtractTextPlugin会报错
很搞不懂 我已经copy了 难道ExtractTextPlugin也需要设置忽略某些文件吗 刚研究第三天 很揪心
from vue-multiple-pages.
现在又遇到的问题 我只写了一个html vue js 文件 然后打包会Cannot read property 'call' of undefined
这是为啥 是因为CommonsChunkPlugin 必须两个页面以上才可以吗 但是在线运行是没问题的
from vue-multiple-pages.
Related Issues (20)
- postcss没有编译 HOT 4
- 为什么不支持 es6 语法 HOT 5
- webpack可以弄成增量打包多页吗 HOT 1
- 搭建的多页面项目,跳转时会出现短暂的空白
- 我想升级webpack4,直接用你新的框架,把以前的src里面的文件夹都复制进去 HOT 2
- 如何使用vue-router 是否可以提供一个例子? HOT 7
- js里面如果有中文构建后会出现乱码 HOT 3
- extract-text-webpack-plugin应该被替换成mini-css-extract-plugin HOT 2
- 打包文件fill:\\\形式访问不对 HOT 1
- npm run dev 验证表单报错 HOT 7
- 当有 6 多页面时, build 一直卡着不动,删掉一个多页面能成功 build HOT 3
- Think you so much for sharing this framework ! Could you provide any code to support network request ? HOT 2
- Extra code? HOT 3
- Handle/simulate 404 error? HOT 1
- Readme doesn't mention that page titles are optional and could be missed
- Work together with vue-cli-plugin-pages
- Adding module error HOT 1
- can't auto open Browser
- please doc what this mean ? (remove named-chunk plugin)
- Why does the compiled page report errors and have no content
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-multiple-pages.