Gathering detailed insights and metrics for next-remove-imports
Gathering detailed insights and metrics for next-remove-imports
Gathering detailed insights and metrics for next-remove-imports
Gathering detailed insights and metrics for next-remove-imports
The default behavior is to remove all .less/.css/.scss/.sass/.styl imports from all packages in node_modules.
npm install next-remove-imports
Typescript
Module System
Node Version
NPM Version
JavaScript (87.09%)
TypeScript (12.91%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
17 Stars
59 Commits
2 Forks
3 Watchers
8 Branches
5 Contributors
Updated on Jun 24, 2024
Latest Version
1.0.12
Package Id
next-remove-imports@1.0.12
Unpacked Size
6.36 kB
Size
2.19 kB
File Count
5
NPM Version
8.19.4
Node Version
16.20.1
Published on
Aug 01, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
This is a plugin for nextjs. The default behavior is to remove all .less
/.css
/.scss
/.sass
/.styl
imports from all packages in node_modules.
Warning CSS Imported by a Dependency
#52
- https://github.com/uiwjs/react-md-editor/issues/52#issuecomment-848969341
- https://github.com/vercel/next.js/issues/9607
- Example: https://codesandbox.io/s/nextjs-example-react-md-editor-qjhn7?file=/pages/index.js
- Example: @uiwjs/next-remove-imports/example
- Example: https://next-remove-imports-example.vercel.app
1npm install next-remove-imports 2# or 3yarn add next-remove-imports
1// next.config.mjs 2import removeImports from 'next-remove-imports' 3 4/** @type {function(import("next").NextConfig): import("next").NextConfig}} */ 5const removeImportsFun = removeImports({ 6 // test: /node_modules([\s\S]*?)\.(tsx|ts|js|mjs|jsx)$/, 7 // matchImports: "\\.(less|css|scss|sass|styl)$" 8}); 9 10export default removeImportsFun({ 11 webpack(config, options) { 12 return config 13 }, 14});
1// next.config.js 2const removeImports = require('next-remove-imports')({ 3 options: { }, 4}) 5module.exports = removeImports()
1// next.config.js 2const removeImports = require('next-remove-imports')() 3module.exports = removeImports({ 4 webpack(config, options) { 5 return config 6 }, 7});
1// next.config.js 2const removeImports = require('next-remove-imports')({ 3 test: /node_modules([\s\S]*?)\.(tsx|ts|js|mjs|jsx)$/, 4 matchImports: "\\.(less|css|scss|sass|styl)$" 5}); 6 7module.exports = removeImports({ 8 webpack(config, options) { 9 return config 10 }, 11});
1// next.config.js 2const removeImports = require('next-remove-imports')(); 3 4module.exports = (phase, { defaultConfig }) => { 5 return removeImports({ 6 ...defaultConfig 7 }); 8};
1export type PluginOptions = { 2 /** 3 * @default "/node_modules([\s\S]*?)\.(tsx|ts|js|mjs|jsx)$/" 4 */ 5 test?: RegExp; 6 /** 7 * @default "\\.(less|css|scss|sass|styl)$" 8 */ 9 matchImports?: string; 10}
Licensed under the MIT License.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
Found 0/28 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More