一覧へ戻る
ssssota/unplugin-parcel-css(新しいタブで開きます)
主要言語: TypeScript
A Vite/webpack/Rollup plugin with @parcel/css
- star 数
- 3
- watcher 数
- 1
- fork 数
- 0
- issue 数
- 0
- 最終更新
- 2022/08/04
主要言語: TypeScript
A Vite/webpack/Rollup plugin with @parcel/css
A Vite/webpack/Rollup/esbuild plugin with @parcel/css.
@parcel/css is
A CSS parser, transformer, and minifier written in Rust.
// vite.config.ts import ParcelCSS from 'unplugin-parcel-css/vite'; export default defineConfig({ plugins: [ ParcelCSS({ /* options */ }), ], });
Example: playground/
// rollup.config.js import ParcelCSS from 'unplugin-parcel-css/rollup'; export default { plugins: [ ParcelCSS({ /* options */ }), ], };
You should use with css bundler like rollup-plugin-css-only.
// webpack.config.js module.exports = { // ... plugins: [ require('unplugin-parcel-css/webpack')({ /* options */ }), ], };
You should use with css-loader.
module.exports = { webpack: (config) => { config.plugins.push( require('unplugin-parcel-css/webpack')({ /* options */ }) ); return config; }, };
// nuxt.config.js export default { buildModules: [ [ 'unplugin-parcel-css/nuxt', { /* options */ }, ], ], };
This module works for both Nuxt 2 and Nuxt Vite
// vue.config.js module.exports = { configureWebpack: { plugins: [ require('unplugin-parcel-css/webpack')({ /* options */ }), ], }, };
Welcome!
MIT