electrode-io / electrode

Web applications with node.js and React
Other
2.1k stars 301 forks source link

Question: How to enable critical css option on electrode version 4.1.1 (electrode-archetype-react-app) #1906

Open sprajasekar opened 1 year ago

sprajasekar commented 1 year ago

We are having a legacy project built on electrode. We are using electrode-archetype-react-app v4.1.1, and we want to enable critical css in this project. I tried adding files archetype/config/index.js and archetype/config.js, and tried to add the below code to it as suggested.

module.exports = {
  options: {
    criticalCSS: true
  }
};

I have a critical css marker on the template too It doesn't seem to render the critical css on the template. I don't find any documentation on the same. Any help will be appreciated.