Skip to content

yuminjustin/spotlight-templates-vue-vuex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 

Repository files navigation

spotlight-templates-vue-vuex

spotlight scaffold template for vue+vuex

Use:

 spotlight vuex my-project

 cd my-project

 npm install

 npm run dev

 npm run build

此模板是vue环境
This template is base on webpack, support for vuejs

1.配置在build/config.js 当中;
Configures in build/config.js

2.vue + vue-router + vuex + element-ui

如果使用的history路由需要做以下操作:
1)、在config.js中需要将dev和build的html5Router属性设置成true;
2)、gulp需要全局安装;
3)、此模板打包已支持Apache, 你只需要确认你的Apache开启rewrite功能(ngix 需要另外配置,如下);

location / {
    try_files $uri $uri/ /index.html;
}

3.Upgrade to webpack5

4.Upgrade gulp

enjoy!

About

spotlight templates vue+vuex+router+element-ui环境

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published