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
System: OS: win10 Browsers: Chorme: 124 npmPackages: "@rsbuild/core": "^1.0.16", "@rsbuild/plugin-babel": "^1.0.2", "@rsbuild/plugin-vue": "^1.0.2", "@rsbuild/plugin-vue-jsx": "^1.0.1",
rsbuild.config.ts
import { TestPlugin } from './test-plugin'; import { resolve } from 'path'; import { defineConfig, rspack } from '@rsbuild/core'; import { pluginLess } from '@rsbuild/plugin-less'; import { pluginVue } from '@rsbuild/plugin-vue'; export default defineConfig({ plugins: [ pluginLess({ lessLoaderOptions: { lessOptions: { javascriptEnabled: true, plugins: [new TestPlugin()] }, implementation: require.resolve('less') } }), pluginVue() ], html: { template: './index.html' }, source: { entry: { index: './src/main.ts' }, }, });
test-plugin.ts
export class TestPlugin { options?: any; constructor(someOptions?: any) { this.options = someOptions; } install(_less: any, manager: any) { console.log('manager: ', manager); console.log('_less: ', _less); console.log(this.options) // ....... some code } }
Howerver, the plugin's install function has never been invoked when i run rsbuild build in the command line.
rsbuild build
Please see the details.
The text was updated successfully, but these errors were encountered:
test: group e2e test cases (web-infra-dev#3810)
25dea8f
Sang-Sang33
No branches or pull requests
Version
System:
OS: win10
Browsers:
Chorme: 124
npmPackages:
"@rsbuild/core": "^1.0.16",
"@rsbuild/plugin-babel": "^1.0.2",
"@rsbuild/plugin-vue": "^1.0.2",
"@rsbuild/plugin-vue-jsx": "^1.0.1",
Details
rsbuild.config.ts
test-plugin.ts
Howerver, the plugin's install function has never been invoked when i run
rsbuild build
in the command line.Reproduce link
Please see the details.
Reproduce Steps
Please see the details.
The text was updated successfully, but these errors were encountered: