Soy Gabo.
Desarrollador por varios años, con experiencia en proyectos web, de escritorio, móviles, dispositivos de pago, etc.
Apasionado por la programación, tecnología, y soluciones elegantes.
Found the issue. It turns out "NODE_ENV=production" won't work on Windows. I solved it by installing "cross-env" and updating the script to "cross-env NODE_ENV=production ...".
Many thanks for this post.
A couple of suggestions.
1) Locating global.css on the static directory will also copy that file on build/export. I've moved it to src folder instead to solve this issue.
2) Maybe it's out of the scope of this post, but I think it's missing a way to minify the generated CSS.
3) Also update the script for "export" to build the css
Frontend Expert & Mentor: Combining 7+ years of software engineering with a deep passion for experience design. I craft digital interfaces that captivate and deliver seamless user experiences, thanks
Found the issue. It turns out "NODE_ENV=production" won't work on Windows. I solved it by installing "cross-env" and updating the script to "cross-env NODE_ENV=production ...".
Many thanks for this post.
A couple of suggestions.
1) Locating global.css on the static directory will also copy that file on build/export. I've moved it to src folder instead to solve this issue.
2) Maybe it's out of the scope of this post, but I think it's missing a way to minify the generated CSS.
3) Also update the script for "export" to build the css
Thank you very much for sharing the solution!
Just add
to the
plugins
array in postcss.config.js to minify the index.css