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
alias({ entries: [{ find: '@', replacement: resolvePath('alias','../src') }] }), vue({ css: true, compileTemplate: true, }), postcss({ extensions: ['.css','.less'], plugins:[ postcssImport({ resolve(id){ console.log(id) if(id.startsWith('@/')){ const resolvedPath = resolvePath('../src/' + id.slice(2)); console.log(`Resolving @ path: ${id} -> ${resolvedPath}`); return resolvedPath; } return resolvePath('no@',id) } }) ], use:[ ['less',{ modifyVars: { hack: `true; @import (reference) "${resolvePath('../src/style/variable.less')}";` }, javascriptEnabled: true, }] ], }),
The text was updated successfully, but these errors were encountered:
Why does the console.log(id) statement in resolve function not execute?
Sorry, something went wrong.
No branches or pull requests
It can parse LESS variables but cannot recognize the @import syntax
My part configuration of rollup.config.js:
The text was updated successfully, but these errors were encountered: