Skip to content

`VuePages` 是一套支持 「静态模板直出」的 `Vue` 多页应用解决方案。

License

Notifications You must be signed in to change notification settings

dabanlee/vue-pages

Repository files navigation

Vue Pages

Vue Pages

`Vue Pages` 是一套支持 「静态模板直出」的 `Vue` 多页应用解决方案。

MIT License

Initialization

直接使用 just-cli 命令行工具初始化项目

$ # 安装 just-cli 忽略此步骤
$ sudo yarn global add just-cli

$ # 添加 VuePages 为模板
$ just add
$ template name: vue-pages
$ branch(master): master
$ git: https://github.com/JustClear/vue-pages.git

$ # 初始化名称为 `project-name` 的项目
$ just init vue-pages <project-name>
$ cd <project-name>
$ yarn
$ yarn start

Getting Started

// webpack.config.js
const VueToHtml = require('webpack-plugin-vue-to-html')

module.exports = {
    entry: VueToHtml.entry,
    // ...
    plugins: [
        new VueToHtml(),
        // ...
    ],
    devServer: {
        contentBase: path.join(__dirname, './dist'),
        disableHostCheck: true,
        compress: true,
        port: '3000',
        host: VueToHTML.getHost(),
    },
}

详细文档请参阅 Documentation

License

Licensed under the MIT License

About

`VuePages` 是一套支持 「静态模板直出」的 `Vue` 多页应用解决方案。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published