0.0.2 • Published 7 years ago
riottag-loader v0.0.2
riottag-loader
A webpack loader for Riot.js that gathers and compiles tags.
Notice
This package is under development, I would be wary of using it in production!
If you run into issues, feel free to open an issue or pull request.
Thanks in advance!
Installation
You can install this loader via NPM or Yarn
npm install riottag-loader
Usage
Head into your webpack.config.js
file and add the following to the loaders
array:
module: {
loaders: [
{
test: /\.tag$/,
exclude: /node_modules/,
loader: 'riottag-loader',
},
],
}
NOTE: Webpack recommends that you load the riottag-loader
before loading Babel. Non-Javascript transformations should be loaded first. To learn more, click here.
Credit
Credit goes to @esnunes for writing the first riot loader.