New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

clean-comments-loader

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clean-comments-loader

To remove the comments in js/css/html and more.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

clean-comments-loader

To remove the comments in js/css and more (C style comments).

可以清除类c注释(字符串中的类似注释的字符不会被清除)

安装 Install

npm i clean-comments-loader -D

If you got an error Module build failed: Error: Cannot find module 'loader-utils', you need install the package loader-utils(just run npm i loader-utils -D in the terminal).

使用 Usage

{
  module: {
    rules: [
      {
        test: /\.js$/,
        loader: 'clean-comments-loader'
    ]
  }
}

配置项 Options

  • onlyBlock

    • 只清除块级注释 Only clean block comments
    • Ture or False(default)
  • onlyLine

    • 只清楚行内注释 Only clean line comments
    • Ture or False(default)

Keywords

loader

FAQs

Package last updated on 19 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts