English | 简体中文
git clone repo
npm inpm run devAt this time, it will monitor the file changes in the src directory and generate dist/darkmode.js files in real time. You can access test/demo.html through the file:// protocol to see the effect.
npm run buildAfter the development is completed, the final target file dist/darkmode.min.js can be generated through the packaging command.