unplugin-tailwindcss-mangle
Advanced tools
Comparing version 0.0.2 to 0.0.3
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
var unplugin$1 = require('unplugin'); | ||
@@ -496,3 +498,7 @@ var tailwindcssPatch = require('tailwindcss-patch'); | ||
}); | ||
const vitePlugin = unplugin.vite; | ||
const webpackPlugin = unplugin.webpack; | ||
module.exports = unplugin; | ||
exports.unplugin = unplugin; | ||
exports.vitePlugin = vitePlugin; | ||
exports.webpackPlugin = webpackPlugin; |
@@ -13,4 +13,4 @@ 'use strict'; | ||
var esbuild = index.esbuild; | ||
var esbuild = index.unplugin.esbuild; | ||
module.exports = esbuild; |
import type { Options } from './types'; | ||
declare const unplugin: import("unplugin").UnpluginInstance<Options | undefined, boolean>; | ||
export default unplugin; | ||
export declare const unplugin: import("unplugin").UnpluginInstance<Options | undefined, boolean>; | ||
export declare const vitePlugin: (options?: Options | undefined) => import("vite").Plugin | import("vite").Plugin[]; | ||
export declare const webpackPlugin: (options?: Options | undefined) => import("webpack").WebpackPluginInstance; |
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
var unplugin$1 = require('unplugin'); | ||
@@ -496,3 +498,7 @@ var tailwindcssPatch = require('tailwindcss-patch'); | ||
}); | ||
const vitePlugin = unplugin.vite; | ||
const webpackPlugin = unplugin.webpack; | ||
module.exports = unplugin; | ||
exports.unplugin = unplugin; | ||
exports.vitePlugin = vitePlugin; | ||
exports.webpackPlugin = webpackPlugin; |
@@ -41,7 +41,7 @@ 'use strict'; | ||
config.plugins = config.plugins || []; | ||
config.plugins.unshift(index.webpack(options)); | ||
config.plugins.unshift(index.unplugin.webpack(options)); | ||
})); | ||
nuxt.hook('vite:extendConfig', (config) => __awaiter(this, void 0, void 0, function* () { | ||
config.plugins = config.plugins || []; | ||
config.plugins.push(index.vite(options)); | ||
config.plugins.push(index.unplugin.vite(options)); | ||
})); | ||
@@ -48,0 +48,0 @@ } |
@@ -13,4 +13,4 @@ 'use strict'; | ||
var rollup = index.rollup; | ||
var rollup = index.unplugin.rollup; | ||
module.exports = rollup; |
@@ -13,4 +13,4 @@ 'use strict'; | ||
var vite = index.vite; | ||
var vite = index.unplugin.vite; | ||
module.exports = vite; |
@@ -13,4 +13,4 @@ 'use strict'; | ||
var webpack = index.webpack; | ||
var webpack = index.unplugin.webpack; | ||
module.exports = webpack; |
{ | ||
"name": "unplugin-tailwindcss-mangle", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "mangle tailwindcss utilities class", | ||
@@ -67,3 +67,3 @@ "main": "./dist/index.js", | ||
"unplugin": "^1.3.1", | ||
"tailwindcss-patch": "1.0.1" | ||
"tailwindcss-patch": "1.0.2" | ||
}, | ||
@@ -70,0 +70,0 @@ "publishConfig": { |
@@ -57,6 +57,6 @@ # unplugin-tailwindcss-mangle | ||
import vue from '@vitejs/plugin-vue' | ||
import utwm from 'unplugin-tailwindcss-mangle' | ||
import { vitePlugin as utwm } from 'unplugin-tailwindcss-mangle' | ||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
plugins: [vue(), utwm.vite()] | ||
plugins: [vue(), utwm()] | ||
}) | ||
@@ -79,5 +79,8 @@ ``` | ||
```js | ||
import utwm from 'unplugin-tailwindcss-mangle' | ||
// esm | ||
import { webpackPlugin as utwm } from 'unplugin-tailwindcss-mangle' | ||
// or cjs | ||
const { webpackPlugin: utwm } = require('unplugin-tailwindcss-mangle') | ||
// use this webpack plugin | ||
utwm.webpack() | ||
utwm() | ||
``` | ||
@@ -84,0 +87,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
68070
1709
100
+ Addedtailwindcss-patch@1.0.2(transitive)
- Removedtailwindcss-patch@1.0.1(transitive)
Updatedtailwindcss-patch@1.0.2