vue-cli-plugin-publicpath
v1.1.1
Published
rewrite assets public path
Downloads
147
Maintainers
Readme
vue-cli-plugin-publicpath
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.