kazupon/vue-cli-plugin-p11n

rollup configuration customizing with vue.config.js

Open

#1 opened on Jan 31, 2019

View on GitHub
 (6 comments) (0 reactions) (0 assignees)JavaScript (11 forks)github user discovery
Type: Featuregood first issue

Repository metrics

Stars
 (112 stars)
PR merge metrics
 (PR metrics pending)

Description

support like configureWebpack of vue.config.js: refs:

configureRollup

  • Type: Object | Function

If the value is an Object, it will be merged into the final config

e.g.

const resolve = require('rollup-plugin-node-resolve')

module.exports = {
   pluginOptions: {
     p11n: {
       configureRollup: {
         plugins: [resolve({
           customResolveOptions: {
             moduleDirectory: 'node_modules'
           }
         })],
         external: ['lodash']
       }
     }
   }
}

Contributor guide