Skip to content

pantoken-root / bundlers/webpack/src / PantokenWebpackPlugin

Classe: PantokenWebpackPlugin ​

Sperimentale

Plugin per Webpack che emette il foglio di stile pantoken come asset di output.

Esempi ​

Emetti pantoken.css dal tuo webpack.config.js

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

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

Rinomina l'asset emesso

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

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

Costruttori ​

Costruttore ​

new PantokenWebpackPlugin(options?): PantokenWebpackPlugin

Sperimentale

Parametri ​

options? ​

PantokenWebpackOptions = {}

Restituisce ​

PantokenWebpackPlugin

Metodi ​

apply() ​

apply(compiler): void

Sperimentale

Parametri ​

compiler ​

CompilerLike

Restituisce ​

void