Skip to content

lglong519/project-multi-pages

Repository files navigation

multi-pages

Live: http://book.mofunc.com

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Customize configuration

pages => pages.config.js
{
    // page index.html
    entry: "src/main.ts",
    path: "index",
    template: "public/index.html", // default
    pagesRoot: "src/pages/", // => @/
    pages: [
        {
            // page sort.html
            entry: "@/sort/main.ts",
            path: "sort",
            template: "public/index.html", // optional. use default if undefined
        },
        {
            // page top.html
            entry: "@/top/main.ts",
            path: "top",
        }
    ]
}
api config => src/utils/config.ts
{
    MODE: "localhost", // or development
    ...
    REQUST: {
        // for localhost
        localhost: {
            BASE_URL: "http://192.168.244.121:51202/",
        },
        // for development
        development: {
            BASE_URL: "http://dev.mofunc.com/ws/",
        },
        // ...
    },
};

Previews

Alt textAlt textAlt text Alt textAlt textAlt text Alt textAlt textAlt text

About

project-multi-pages:vue-cli3.0+typescript+rem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published