Skip to content

pantoken-root / bundlers/webpack/src / PantokenWebpackPlugin

Sınıf: PantokenWebpackPlugin ​

Deneysel

pantoken stil sayfasını bir çıktı varlığı (asset) olarak oluşturan Webpack eklentisi.

Örnekler ​

webpack.config.js'inizden pantoken.css'i yayınlayın

js
import { PantokenWebpackPlugin } from "@pantoken/webpack";

export default {
  plugins: [new PantokenWebpackPlugin()],
};

Oluşturulan varlığın (asset) adını değiştirin

js
import { PantokenWebpackPlugin } from "@pantoken/webpack";

export default {
  plugins: [new PantokenWebpackPlugin({ filename: "tokens.css" })],
};

Yapıcılar ​

Yapıcı ​

new PantokenWebpackPlugin(options?): PantokenWebpackPlugin

Deneysel

Parametreler ​

options? ​

PantokenWebpackOptions = {}

Döndürür ​

PantokenWebpackPlugin

Metotlar ​

apply() ​

apply(compiler): void

Deneysel

Parametreler ​

compiler ​

CompilerLike

Döndürür ​

void