vue-cli-plugin-publicpath

rewrite assets public path

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
vue-cli-plugin-publicpath
701.1.14 years ago4 years agoMinified + gzip package size for vue-cli-plugin-publicpath in KB

Readme

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.