Scss decoumentation

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv)
2018-02-24 00:14:32 +01:00
parent 24c8f97fec
commit 3435b62da5

View File

@@ -18,6 +18,12 @@ The CSS files reside in the **css/** folder and should be included in the templa
// include vendor file (also allows array syntax)
vendor_style('myapp', 'style'); // adds vendor/style.css
.. note:: Since the version 12 of Nextcloud, we support ``SCSS`` natively.
You can migrate your files by simply renaming your ``.css`` files to ``.scss``.
The server will automatically compile, cache and and serve it.
The priority goes to the scss file. So having two file with the same name and a ``scss`` & ``css`` extension
will ensure a retro compatibility with <12 versions as scss files will be ignored by the server.
Web Components go into the **component/** folder and can be imported like this:
.. code-block:: php