babel-plugin-transform-css-import-to-string
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -16,3 +16,3 @@ 'use strict'; | ||
if (node.source.value.endsWith('.css')) { | ||
if (endsWith(node.source.value, '.css')) { | ||
var dir = _path2.default.dirname(_path2.default.resolve(state.file.opts.filename)); | ||
@@ -47,2 +47,6 @@ var absolutePath = _path2.default.resolve(dir, node.source.value); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function endsWith(str, search) { | ||
return str.indexOf(search, str.length - search.length) !== -1; | ||
} |
{ | ||
"name": "babel-plugin-transform-css-import-to-string", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Turn CSS imports into strings", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"build": "babel src --out-dir lib --copy-files", | ||
"build": "rm -rf lib/ && babel src --out-dir lib --copy-files", | ||
"prepublish": "npm run build", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
@@ -9,0 +10,0 @@ }, |
4236
33