Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destination is not provided, splitted css files would not be written #6

Open
jesujcastillom opened this issue Apr 8, 2018 · 2 comments

Comments

@jesujcastillom
Copy link

I'm getting this error, with Webpack 4:

(Emitted value instead of an instance of Error) postcss-esplit: Destination is not provided, splitted css files would not be written

This is my postcss.config.js:

module.exports = {
	plugins: {
		'autoprefixer': {},
		'postcss-esplit': {},
	},
};

Am I doing something wrong? Or is this plugin not supporting webpack?

@VitaliyR
Copy link
Owner

@jesujcastillom are you using extract-text plugin?

Anyway, this plugin not support webpack.. yet. It tries to write the separated files in the same folder where source file located and @import it. You can disable write via writeFiles: false, but it will do nothing useful.

I will add support when I will have a time for that in future.

@jesujcastillom
Copy link
Author

@VitaliyR no, I'm using mini-css-extract-plugin reason being that extract-text is not supported in webpack 4, I'm curious about how does this plugin works, since it's the only "warning" (it doesn't emit any files) that I'm getting, and I saw that it comes from not having the to option, which is supposed to be set by webpack, according to postcss. Will take a look if I get the time and check if I can help this..

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

No branches or pull requests

2 participants