Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

rollup configuration customizing with vue.config.js #1

Open
kazupon opened this issue Jan 31, 2019 · 6 comments
Open

rollup configuration customizing with vue.config.js #1

kazupon opened this issue Jan 31, 2019 · 6 comments
Labels
good first issue Good for newcomers Type: Feature New feature or request

Comments

@kazupon
Copy link
Owner

kazupon commented Jan 31, 2019

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']
       }
     }
   }
}
@kazupon kazupon added the Type: Feature New feature or request label Jan 31, 2019
@kazupon kazupon changed the title rollup.config.js importing rollup configuration customizing with vue.config.js May 3, 2019
@kazupon kazupon added the good first issue Good for newcomers label May 3, 2019
@msalahz
Copy link

msalahz commented May 3, 2019

Hi @kazupon, can we add json import via this configuration option? because current json import is not supported in rollup integration

@kazupon
Copy link
Owner Author

kazupon commented May 4, 2019

@msalahz
sorry, Could you provide more your explanation info for us, please? 🙏

@msalahz
Copy link

msalahz commented May 6, 2019

@kazupon : My app utilize https://github.com/epoberezkin/ajv to support json validation. Ajv accept validation schema as JSON object & I keep these validation schemas in .json files, and I import them in the files require them. when I used vue-cli-plugin-p11n to plugnize my vue app I get an error from rullup when I try to build the bluginized app that json import is not supported. and when I made some research I found that I need use rollup-plugin-json to support .json import with rollup which I couldn't find out how do so through p11n. Can you advice ?

@msalahz
Copy link

msalahz commented May 7, 2019

@kazupon : Ref for related issue #23

@msalahz
Copy link

msalahz commented May 16, 2019

Any updates about this ?

mbackonja added a commit to Vivify-Ideas/vue-cli-plugin-p11n that referenced this issue Jun 27, 2019
@phiny1
Copy link

phiny1 commented Nov 12, 2019

It will very nice this option, I need use rollup-plugin-postcss to convert sass files. Wait for this feature.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers Type: Feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants