Skip to content

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

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Turn HTML imports into strings.

Example

import html from './example.html';

out

Installation

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

Usage

Via .babelrc (Recommended)

.babelrc

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

Via CLI

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

Via Node API

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

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%