Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Version 4.0.0 not saving CSS file #183

Closed
nwpappas opened this issue May 1, 2018 · 3 comments · Fixed by #184
Closed

Version 4.0.0 not saving CSS file #183

nwpappas opened this issue May 1, 2018 · 3 comments · Fixed by #184

Comments

@nwpappas
Copy link

nwpappas commented May 1, 2018

Expected behavior

Sending css property should export CSS file.

    vue({
      css: './build/assets/css/bundle.css'
    }),

Actual behavior

No file is exported.

Steps to reproduce the behavior

Upgraded 'rollup-plugin-vue' from 2.5 to 4.0.0, with no changes to 'rollup.config.js'. The CSS files is no longer exported.

Reverting the plugin back to 2.5 the problem is solved.

@znck
Copy link
Member

znck commented May 2, 2018

Yes. That part was intentionally left out. It inlines CSS and injects at runtime.

@znck znck self-assigned this May 2, 2018
@znck znck closed this as completed in #184 May 2, 2018
znck added a commit that referenced this issue May 2, 2018
Use vue({ css: false }) to convert style blocks to import statements and then CSS plugin can handle it.

fixes #183, #153
@nwpappas
Copy link
Author

nwpappas commented May 2, 2018

Is the built-in export being added back, or will it be left out in favor of letting other plugins deal with it - such as https://github.com/thgh/rollup-plugin-css-only?

@znck
Copy link
Member

znck commented May 2, 2018

It is left out for other plugins. We are trying to have a minimal API surface.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants