Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.73 KB

README.md

File metadata and controls

33 lines (21 loc) · 1.73 KB

Osnova Dark Theme

Userscript bringing dark theme to Osnova platform. Contains A LOT of subthemes and modules.

How it works

Core file src/core.js imports necessary utils and modules. Its primary task is to apply chosen or default options on page load or on demand (e.g. attaching link to Ultra Dark Theme style or showing favourites marker). Webpack bundles all JS files in src to single build/osnova-dark-theme.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.

Building with npm

  1. Install necessary dependencies – npm i --production
  2. Bundle userscript with webpack and @serguun42/webpack-userscript-pluginnpm run build
  3. Minify all css with postcss, cssnano and autoprefixer and dump it to build/ folder – npm run resources

Development

  1. Install all dependencies – npm i
  2. Build userscript in watch modenpm run dev, output to dev/osnova-dark-theme.user.js
  3. Check project with ESLint – npm run lint

About

Options available for end-user

Available options