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

Enabling grid support in Autoprefixer #28

Open
kokoshneta opened this issue Jan 19, 2020 · 0 comments
Open

Enabling grid support in Autoprefixer #28

kokoshneta opened this issue Jan 19, 2020 · 0 comments

Comments

@kokoshneta
Copy link

As far as I can tell, when you compile LESS/SASS files using Autoprefixer, the optional Grid polyfill for IE is disabled, as is the default for Autoprefixer.

As best I’ve been able to figure out by trial-and-error pecking through the source code, Autoprefixer gets loaded in compiles/sass/SassCompiler.ts on line 168ff:

if (options.autoprefixer) {
	const LessPluginAutoPrefix = require('less-plugin-autoprefix');
	const browsers: string[] = cleanBrowsersList(options.autoprefixer);
	const autoprefixPlugin = new LessPluginAutoPrefix({ browsers });

	autoprefixPlugin.install(result, {
		addPostProcessor: function (postProcessor){
			css = postProcessor.process(css, {});
		}
	});
}

But I have no idea where less-plugin-autoprefix is getting pulled in from, nor where any options other than the browser specification is supposed to get pulled in.

Is there some way to turn on the grid polyfill feature available in Autoprefixer when using Easy Compile?

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

1 participant