nuxt
nuxt 1.4.0 https://zh.nuxtjs.org/guide/installation vue init nuxt-community/starter-template test cd test npm install npm run dev http: // localhost:3000/ No need for # anymore 1 .dev and build cannot run at the same time 3. The route is generated directly, and the page is added directly in the page folder 4. In nuxt.config.js, add publicPath: 'http://www.xxx.com' in build:{} only Add a specific domain name, you cannot add the current directory ./ anymore 5 .nuxt build builds the entire application, compresses and merges JS and CSS files (for production) nuxt start starts a server in production mode (you must run the nuxt build command first) generally use server rendering nuxt generate builds the entire application and generates a static page for each route (for static servers) Website static 6. <nuxt-link to="/home">link jump</nuxt-link> 7. npm install less-loader --save-dev less css -loader // Parse @import and url() 8. nuxt.config.js /* global css */ css: [ { src: '~assets/style/mystyle.less', lang: 'less' } ], json-server --watch a.json -p 3003