vue-multiple-cli
Advanced tools
+1
-1
| { | ||
| "name": "vue-multiple-cli", | ||
| "version": "0.0.2", | ||
| "version": "0.0.3", | ||
| "description": "create a multiple page app with vue", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+25
-0
@@ -14,2 +14,4 @@ # a simple cli for vue multiple page app | ||
| $ vum create my-project | ||
| $ cd my-project | ||
| $ npm start or yarn start | ||
| ``` | ||
@@ -38,2 +40,3 @@ | ||
| module.exports={ | ||
| //if you want to run all pages,you should set: page:'*' | ||
| page:['example'], | ||
@@ -61,1 +64,23 @@ port:3000, | ||
| ``` | ||
| ## postcss.config.js | ||
| you can create a postcss.config.js to add new postcss plugins | ||
| ```javascript | ||
| //postcss.config.js | ||
| module.exports=function(defaultPostcssPlugin,NODE_ENV){ | ||
| return [ | ||
| //you postcss plugins | ||
| ] | ||
| } | ||
| ``` | ||
| ## babel.config.js | ||
| you can create a babel.config.js to merge the default babel config | ||
| ```javascript | ||
| //babel.config.js | ||
| module.exports=function(defaultBabelConfig){ | ||
| return { | ||
| //you babel options | ||
| } | ||
| } | ||
| ``` |
29640
1.91%84
42.37%