Closed marksweb closed 2 years ago
Sass creates the .map file. I have added it to the repo in the latest commit https://github.com/fsbraun/djangocms-frontend/commit/352690886a298a757af92087da02635ea089e1af.
@fsbraun there are additional source maps for other css files.
How do you compile these? It might be worth adding the process to the repo incase people need to modify the styles.
Sorry, I oversaw base.css.map
. (https://github.com/fsbraun/djangocms-frontend/commit/e0680268fe23d2a830a3d4bb3e1262b50d9d5dcd) The other files are uncompressed css and select2.css
which is the css from Select2.js.
Wait, maybe select2.css
is missing for an unknown reason.
Yes, I could create it. Now all .map
files should be there: https://github.com/fsbraun/djangocms-frontend/commit/cb72d35026608b73e5e5ec46ce2db95a26587c63
@marksweb Maybe you can have a look at the gulpfile.js
. I have not used it. Rather I compiled js with webpack and css with sass, respectively, by hand. Sass:
sass -scompressed base.scss ../../djangocms_frontend/static/djangocms_frontend/css/base.css
I did not use the build process for icons and I fear it would fail. For sass to work an installation of bootstrap is needed. Bootstrap 5 needs autoprefix which I believe is not part of the gulp process.
I'm trying to build this into an app to deploy but my static collection is failing on missing files.
The CSS references source maps, but they're not actually in the repo.
Could we perhaps include the un-minified CSS alongside the minified files and source maps?
To clarify the error;