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

rollup-plugin-css-only

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-css-only - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

17

dist/index.cjs.js
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var fs = require('fs');
var rollupPluginutils = require('rollup-pluginutils');
var path = _interopDefault(require('path'));
var mkdirp = _interopDefault(require('mkdirp'));

@@ -73,7 +77,16 @@ function css (options) {

return new Promise(function (resolve, reject) {
fs.writeFile(dest, css, function (err) {
var ref = path.parse(dest);
var dir = ref.dir;
mkdirp(dir, function (err) {
if (err) {
reject(err);
} else {
resolve();
fs.writeFile(dest, css, function (err) {
if (err) {
reject(err);
} else {
resolve();
}
});
}

@@ -80,0 +93,0 @@ });

import { writeFile } from 'fs';
import { createFilter } from 'rollup-pluginutils';
import path from 'path';
import mkdirp from 'mkdirp';

@@ -71,7 +73,16 @@ function css (options) {

return new Promise(function (resolve, reject) {
writeFile(dest, css, function (err) {
var ref = path.parse(dest);
var dir = ref.dir;
mkdirp(dir, function (err) {
if (err) {
reject(err);
} else {
resolve();
writeFile(dest, css, function (err) {
if (err) {
reject(err);
} else {
resolve();
}
});
}

@@ -78,0 +89,0 @@ });

@@ -0,0 +0,0 @@ The MIT License (MIT)

3

package.json
{
"name": "rollup-plugin-css-only",
"version": "0.2.0",
"version": "0.3.0",
"description": "Rollup plugin that bundles imported css",

@@ -34,2 +34,3 @@ "main": "dist/index.cjs.js",

"dependencies": {
"mkdirp": "^0.5.1",
"rollup-pluginutils": "^1.5.2"

@@ -36,0 +37,0 @@ },

@@ -0,0 +0,0 @@ # Rollup plugin that bundles imported css

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