Userscript bringing users' previous names to Osnova platform.
Core file src/core.js
imports necessary utils and modules. Webpack bundles all JS files in src
to single build/osnova-cacher-names.user.js
– this bundled file is ready for use in *monkey.
All CSS and other resources could be deployed to production server without any minification. For minification see npm run resources
command.
- Install necessary dependencies –
npm i --production
- Bundle userscript with webpack and
@serguun42/webpack-userscript-plugin
–npm run build
- Minify all css with postcss, cssnano and autoprefixer and dump it to
build/
folder –npm run resources
- Install all dependencies –
npm i
- Build userscript in watch mode –
npm run dev
, output todev/osnova-cacher-names.user.js
- Check project with ESLint –
npm run lint