Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2
The default behavior is to remove all .less/.css/.scss/.sass/.styl imports from all packages in node_modules.
License
NotificationsYou must be signed in to change notification settings
uiwjs/next-remove-imports
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is a plugin fornextjs. The default behavior is to remove all.less/.css/.scss/.sass/.styl imports from all packages in node_modules.
npm install next-remove-imports# oryarn add next-remove-imports// next.config.mjsimportremoveImportsfrom'next-remove-imports'/**@type {function(import("next").NextConfig): import("next").NextConfig}} */constremoveImportsFun=removeImports({// test: /node_modules([\s\S]*?)\.(tsx|ts|js|mjs|jsx)$/,// matchImports: "\\.(less|css|scss|sass|styl)$"});exportdefaultremoveImportsFun({webpack(config,options){returnconfig},});
// next.config.jsconstremoveImports=require('next-remove-imports')({options:{},})module.exports=removeImports()
// next.config.jsconstremoveImports=require('next-remove-imports')()module.exports=removeImports({webpack(config,options){returnconfig},});
// next.config.jsconstremoveImports=require('next-remove-imports')({test:/node_modules([\s\S]*?)\.(tsx|ts|js|mjs|jsx)$/,matchImports:"\\.(less|css|scss|sass|styl)$"});module.exports=removeImports({webpack(config,options){returnconfig},});
// next.config.jsconstremoveImports=require('next-remove-imports')();module.exports=(phase,{ defaultConfig})=>{returnremoveImports({ ...defaultConfig});};
exporttypePluginOptions={/** *@default "/node_modules([\s\S]*?)\.(tsx|ts|js|mjs|jsx)$/" */test?:RegExp;/** *@default "\\.(less|css|scss|sass|styl)$" */matchImports?:string;}
Licensed under the MIT License.
About
The default behavior is to remove all .less/.css/.scss/.sass/.styl imports from all packages in node_modules.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.