Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM DownloadsBuild & DeployRepo Dependents

This is a plugin fornextjs. The default behavior is to remove all.less/.css/.scss/.sass/.styl imports from all packages in node_modules.

WarningCSS Imported by a Dependency#52

Install

npm install next-remove-imports# oryarn add next-remove-imports

Usage

// 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});};

Options

exporttypePluginOptions={/**   *@default "/node_modules([\s\S]*?)\.(tsx|ts|js|mjs|jsx)$/"   */test?:RegExp;/**   *@default "\\.(less|css|scss|sass|styl)$"   */matchImports?:string;}

License

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

Stars

Watchers

Forks

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp