thunf / grace-vue-webpack-boilerplate Goto Github PK
View Code? Open in Web Editor NEW[email protected] supported already 🚀, A boilerplate for vue-webpack-project run on koa-grace, setup with Multiple entry
[email protected] supported already 🚀, A boilerplate for vue-webpack-project run on koa-grace, setup with Multiple entry
git clone [email protected]:Thunf/grace-vue-webpack-boilerplate.git grace-project 这个地址没办法clone啊?
在app\wechat\views_common\hook\baidu.html中添加统计的js, 在app\wechat\views_common\layout.html中引入。代码如下: {% include "hook/baidu.html" %}
可以无论如何都无法在统计后台看到数据,作者大大能帮忙看一下么
build目录下open-browser.js文件中第88行代码opn( path.join(uri, config.dev.autoOpenPage || '') )中
path.join 会将参数以系统路径分隔符(windows下为\,linux下为/)进行拼接,并且双斜杠会被替换为单斜杠,
导致调用opn报错
解决方法:将该句代码替换为opn( uri + '/' + config.dev.autoOpenPage || '' )
比如chalk等
提示错误: 未匹配到Koa-grace正确的目录结构,请调整目录结构后重试!
直接拷贝到koa-grace app目录下,cd到app下的grace-project ,安装依赖以后
运行npm run dev,提示错误 Fail to match koa-grace server folder, normalize folder structure and retry
目录结构就是clone下去的啊。。。请指教
上面问题搞定了。要依照koa-grace目录结构
.
├── app
│ └──grace-project
│ ├── build
│ ├── controller
│ ├── mock
│ ├── static
│ ├── views
│ └── vues
└── server
├── app
│ └── grace-project
├── middleware
├── ...
vhost 怎么配置呢? 已解决
模板
builld的 dest
是 上面结构中server/app,上面的目录结构中,在前端项目中构建后,直接在server/app下生成了grace-project项目的目录结构。直接在vhost里配置就可以。
dev.local.me
在hosts里映射成127.0.0.1
module.exports = {
vhost: {
'dev.local.me': 'grace-project'
}
}
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.