Skip to content

pantoken / bundlers/webpack/src / PantokenWebpackPlugin

Luokka: PantokenWebpackPlugin

Kokeellinen

Webpack-laajennus, joka tuottaa pantoken-tyylitaulukon tuotostiedostona.

Esimerkit

Tuota pantoken.css webpack.config.js-tiedostostasi

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

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

Nimeä tuotettu resurssi uudelleen

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

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

Konstruktorit

Konstruktori

new PantokenWebpackPlugin(options?): PantokenWebpackPlugin

Kokeellinen

Parametrit

options?

PantokenWebpackOptions = {}

Palauttaa

PantokenWebpackPlugin

Metodit

apply()

apply(compiler): void

Kokeellinen

Parametrit

compiler

CompilerLike

Palauttaa

void