This template should help get you started developing Tampermonkey UserScript.
- Support ESNext and ES Modules
- Support CSS Modules and sass, scss, less, stylus
- Support SVG Sprite
- Support deal with static resources
- Support international languages
- It's build with rollup, thus you can add external plugins to achieve needed helpers
Install corresponding dependency:
- For Sass install node-sass: yarn add node-sass --dev
- For Stylus Install stylus: yarn add stylus --dev
- For Less Install less: yarn add less --dev
That's it, you can now import .styl .scss .sass .less files in your library.
Settle the svg file to + src/svg
folder, and import it to sprite.js.
Config it in src/rollup_configs/default.js
.
npm install
npm run dev
npm run build