We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Users can easily change the priority of JavaScript plugins, but there seems to be no way to set the priority of a Rust plugin from farm.config.ts.
farm.config.ts
import farmPostcssPlugin from "@farmfe/js-plugin-postcss"; export default defineConfig({ plugins: [ // Js plugin, configure the plugin object { ...farmPostcssPlugin({ // ... configure postcss options }), // larger priority will be executed first, priority of internal plugin are 100. priority: 1000, } ], }); https://www.farmfe.org/docs/using-plugins/#using-js-plugins
import farmPostcssPlugin from "@farmfe/js-plugin-postcss"; export default defineConfig({ plugins: [ // Js plugin, configure the plugin object { ...farmPostcssPlugin({ // ... configure postcss options }), // larger priority will be executed first, priority of internal plugin are 100. priority: 1000, } ], });
https://www.farmfe.org/docs/using-plugins/#using-js-plugins
this is an idea.
export default defineConfig({ // ... plugins: [ [ // rust plugin's name "@farmfe/super-plugin", // rust plugin's options { additionalData: '@use "@/global-variables.scss";' }, // farm options { priority: 1000, }, ], ], });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What problem does this feature solve?
Users can easily change the priority of JavaScript plugins,
but there seems to be no way to set the priority of a Rust plugin from
farm.config.ts
.What does the proposed API look like?
this is an idea.
The text was updated successfully, but these errors were encountered: