Skip to content

Commit

Permalink
fix plugin order to loaders (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjenkinson committed Aug 24, 2020
1 parent 0eabde5 commit d18a896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -82,7 +82,7 @@ module.exports = postcss.plugin(PLUGIN_NAME, (opts = {}) => {
throw new Error('Plugin missing from options.');
}
const earlierPlugins = result.processor.plugins.slice(0, resultPluginIndex);
const loaderPlugins = [...pluginList, ...earlierPlugins];
const loaderPlugins = [...earlierPlugins, ...pluginList];
const loader = getLoader(opts, loaderPlugins);
const parser = new Parser(loader.fetch.bind(loader));

Expand Down

0 comments on commit d18a896

Please sign in to comment.