19 lines
835 B
Plaintext
19 lines
835 B
Plaintext
The amount of css rules required for this plugin is quite high. To accomodate the
|
|
moodle plugin practice of plugin specific css selectors, this makes the css rules
|
|
quite hard to maintain.
|
|
|
|
Unfortunately, moodle does not extend the sass/scss compiler support to plugins
|
|
that are not a theme.
|
|
|
|
To alleviate this, this plugin extends moodle's Gruntfile.js scripts
|
|
to compile 'scss/styles.scss' into 'css/devstyles.css' (and 'styles.css')
|
|
|
|
'css/devstyles.css' is used instead of styles.css in order to avoid having to clear the theme
|
|
cache every time a style rule is changed during development.
|
|
|
|
Once I devise a method to use styles.css in production environtments and css/devstyles.css
|
|
production environments, the compiler will compile it into both css/devstyles.css
|
|
and styles.css
|
|
|
|
The grunt command to compile is 'grunt scssplugin'
|