Skip to content

longshihui/vue-cli-plugin-publicpath

Repository files navigation

vue-cli-plugin-publicpath

Build Status

rewrite assets publicPath in production env

中文文档

Install

vue cli

vue add publicpath

yarn

yarn add vue-cli-plugin-publicpath --dev

npm

npm i vue-cli-plugin-publicpath --save-dev

Configuration

vue.config.js

module.exports = {
    baseUrl: '//js.cdn.com',  // js publicPath
    pluginOptions: {
        publicPath: {
            css: '',
            images: '',
            svg: '',
            media: '',
            fonts: ''
        }
    }
}

See this file for config options.

About

rewrite assets public path

Resources

License

Stars

Watchers

Forks

Packages

No packages published