Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-ignore-html-and-css-imports

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-ignore-html-and-css-imports

Ignore html and css imports in your code. Useful for testing meteor without it's context

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Ignore html and css imports in your code. Useful for testing meteor without it's context

Example

import html from './example.html';
out

Installation

$ npm install --save-dev babel-plugin-ignore-html-and-css-imports

Usage

.babelrc

{
  "plugins": ["ignore-html-and-css-imports"]
}

Via CLI

$ babel --plugins ignore-html-and-css-imports script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["transform-ignore-html-and-css-imports"]
});

Options

You can configure what extensions to remove by adding an optional removeExtensions option.

{
  "plugins": [
    [
      "ignore-html-and-css-imports",
      {
        "removeExtensions": [".png"]
      }
    ]
  ]
}

Initially based on yeiniel/babel-plugin-transform-html-import-to-string which turned out still not to work properly in Meteor - and since we didn't need the string at all, we've decided to change it a bit.

Keywords

FAQs

Package last updated on 04 Aug 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc