This project enables us to look for .tokens.json
files and compile the file tokens that we want.
Touch a new file to use for the plugin. Below is an example taken from resource (1).
//logRemover.ts module.exports = class RemoveLogs { // not needed but can be used for params taken by plugin constructor(options) { this.options = options; } apply(compiler) { console.log('Hello from the new plugin'); } };
In our example, we just need the following:
module.exports = class CompileDesignTokens { apply(compiler) { console.log('Hello from the new plugin'); } };
[TODO: Finish example (Jan 8th 2020)]