pantoken / bundlers/webpack/src / PantokenWebpackPlugin
Class: PantokenWebpackPlugin
Experimental
Webpack plugin that emits the pantoken stylesheet as an output asset.
Examples
Emit pantoken.css from your webpack.config.js
js
import { PantokenWebpackPlugin } from "@pantoken/webpack";
export default {
plugins: [new PantokenWebpackPlugin()],
};Rename the emitted asset
js
import { PantokenWebpackPlugin } from "@pantoken/webpack";
export default {
plugins: [new PantokenWebpackPlugin({ filename: "tokens.css" })],
};Constructors
Constructor
new PantokenWebpackPlugin(
options?):PantokenWebpackPlugin
Experimental
Parameters
options?
Returns
PantokenWebpackPlugin
Methods
apply()
apply(
compiler):void
Experimental
Parameters
compiler
CompilerLike
Returns
void