Socket
Socket
Sign inDemoInstall

vue-cli-plugin-tailwind

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-cli-plugin-tailwind - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

41

generator/index.js

@@ -0,2 +1,33 @@

const fs = require('fs');
const path = require('path');
function loadModule(src, filename) {
var Module = module.constructor;
var m = new Module();
m._compile(src, filename);
return m.exports;
}
function readPostcssConfig(generator) {
const filename = 'postcss.config.js';
const file = generator.files[filename];
if (file) {
const filePath = path.join(generator.context, filename);
fs.writeFileSync(filePath, '');
return loadModule(file, filename);
}
const config = generator.originalPkg.postcss;
if (config) {
const copy = { ...config };
delete config.plugins;
return copy;
}
return {};
}
module.exports = (api, options) => {
const postcss = readPostcssConfig(api.generator);
const configs = {

@@ -10,9 +41,5 @@ postcss: {

};
api.addConfigTransform('postcss', {
file: {
js: ['postcss.config.js'],
json: ['.postcssrc.json', '.postcssrc'],
yaml: ['.postcssrc.yaml', '.postcssrc.yml'],
},
});
configs.postcss.plugins = { ...configs.postcss.plugins, ...postcss.plugins };
api.extendPackage(configs);

@@ -19,0 +46,0 @@

2

package.json
{
"name": "vue-cli-plugin-tailwind",
"version": "0.2.0",
"version": "0.3.0",
"description": "vue-cli plugin for Tailwind CSS",

@@ -5,0 +5,0 @@ "author": "Jens Eggerstedt <j.eggerstedt@kaibatech.de>",

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