yaoyao1987 / vue-cli-multipage Goto Github PK
View Code? Open in Web Editor NEWvue-cli多页面应用
vue-cli多页面应用
Error: connect ETIMEDOUT 173.194.72.128:80
at Object.exports._errnoException (util.js:1026:11)
at exports._exceptionWithHostPort (util.js:1049:20)
at TCPConnectWrap.afterConnect as oncomplete
npm WARN [email protected] requires a peer of babel-runtime@^6.0.0 but none was installed.
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v6.4.0
npm ERR! npm v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the chromedriver package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs chromedriver
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls chromedriver
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/WRQ/Git/vue-cli-multipage/npm-debug.log
新建的模块,实例化路由怎么没有生效呢?
现在项目在开发环境下,css是作为<style>标签插入到head头的,如果要作为文件引入,应该怎么修改配置?
方便加个QQ号吗?方便以后交流!69629177 🙄
我有两个html,main 和user ,所有生成的static,均被每个页面都引用,而不是单独引用属于自己的static文件。
现在我们公司有多个产品,我们想这样做:
每个产品是一个spa,每个产品自己构建编译,这样就不用一个产品改动,全部都要编译了,然后外层框架提供公共组件和公共部分的界面,比如顶部导航和左侧菜单,点击左侧菜单,中间内容区进入不同的spa应用,一种方案是iframe(被否决了),另一种是公共界面作为组件引入到子产品里面,不知道还有没有更好的方法呢?
你好 项目中想要实现懒加载 如何去修改webpack的配置呢?谢谢
你好,我照你说的做;怎么页面没显示,哪点信息配置错了。。。
webpack: wait until bundle finished: /index.html
webpack: wait until bundle finished: /favicon.ico
webpack built 1671c54f98ff6da2bbe6 in 6673ms
Hash: 1671c54f98ff6da2bbe6
Version: webpack 1.13.3
Time: 6673ms
Asset Size Chunks Chunk Names
module/index.js 1.03 MB 0 [emitted] module/index
module/info.js 897 kB 1 [emitted] module/info
module/index.html 558 bytes [emitted]
module/info.html 306 bytes [emitted]
Child html-webpack-plugin for "module\index.html":
Asset Size Chunks Chunk Names
module/index.html 1.47 MB 0
Child html-webpack-plugin for "module\info.html":
Asset Size Chunks Chunk Names
module/info.html 1.47 MB 0
webpack: bundle is now VALID.
dev和build模式下例子里的a.css的flex都没有自动添加前缀
报错:
Invalid CSS after "#list": expected 1 selector or at-rule, was "{"
in D:\vue-cli-multipage-master\src\module\index\list.vue (line 17, col
大神能按照Vue新的版本的基础上改造一个您这样的吗?
QQ:285965920
dev: {
env: require('./dev.env'),
port: 8080,
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {
'/module/info.html': {
target: 'http://localhost:8000',
changeOrigin: true
}
}
不能访问 http://localhost:8080/module/info.html
链接跳到新的页面后退不刷新
bootstrap bb8c77f…:50Uncaught TypeError: Cannot read property 'call' of undefined
package.json里面并没有对应的依赖声明,想问"glob"是从哪里来的.
vue多页面在单元测试应该如何设置
我打算将这个模板应用到新项目,能不能留个联系方式或者建个群及时交流,有这个需求的人挺多的
host:http://127.0.0.1:8010
proxyTable: {
'/v1': {
target: 'http://127.0.0.1:8881/',
changeOrigin: true,
pathRewrite: {
'^/v1': ''
}
}
}
最后打包出来‘css中的图片路径有问题’
大佬,你好,我是小白,我想问问 添加新的页面 怎么做 ?没法实现
打包之后,生产环境还是可以看到vue-tools. 但是,webpack.prod.conf.js 里引用的env 是 NODE_ENV: '"production"'
hi~readme中的目录说明 和代码中的不一致呢?build应该 是和src在同一级
如题,有人知道怎么修改配置吗
我捣鼓了一段时间,发现貌似多路由之间不能跳转
http://localhost:8080/list 运行路由到这个页面,正常显示。但我直接这个地址刷新就提示 Cannot GET /list。
是不是多页面多路由进入子路由页面直接刷新不能获取到。有解决办法吗
在 webpack.prod.conf.js 文件里, 最后导出 module.exports = webpackConfig,
而在此之前却已经调用 module.exports.plugins.push(new HtmlWebpackPlugin(conf)),
故解决防范 可以 去掉 module.exports = webpackConfig,
.... 在 var webpackConfig = merge(baseWebpackConfig, {
改为 module.exports = merge(baseWebpackConfig, {
npm run dev出现Cannot GET / 这个错误
build之后的vendor.js把所有页面引入的库都放进去,导致vendor.js非常大。所有页面共用一个vendor.js。以后随着页面增多,会大到无法使用,合理的情况应该是每个页面对应一个它自己的vendor.js,只包含该页面引入的库。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.