Skip to content

Create-Peace/vue-cli-multi-page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

multi-page

Project setup

yarn install

Compiles and hot-reloads for development

yarn run serve

Compiles and minifies for production

yarn run build

Lints and fixes files

yarn run lint

重要是的是在vue.config.js中添加

configureWebpack: {
        devServer: {
            historyApiFallback: {
                rewrites: [
                    { from: /^\/index\/.*$/, to: '/index.html'},
                    {from: /^\/print\/.*$/, to: '/print.html'}
                ]
            }
        }
    }

About

vue-multi-page

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published