cra-build-watch icon indicating copy to clipboard operation
cra-build-watch copied to clipboard

Create CSS file

Open sguillia opened this issue 5 years ago • 2 comments
trafficstars

Hi

With react-scripts build, the asset-manifest.json contains these lines among others:

{
  "files": {
    "main.css": "./static/css/main.d626b3da.chunk.css",
    "main.js": "./static/js/main.22ef37af.chunk.js"
  }
}

With cra-build-watch, the asset-manifest.json contains these lines:

{
  "files": {
    "main.js": "/js/bundle.js",
    "main.js.map": "/js/bundle.js.map",
    "index.html": "/index.html"
  },
  "entrypoints": [
    "js/bundle.js"
  ]
}

main.css is missing

Is it possible to generate main.css with cra-build-watch?

sguillia avatar Apr 18 '20 13:04 sguillia

Same issue here, main.css is missing which is mandatory of course. Any chance to add this or at least a hint?

EugenMayer avatar Oct 28 '20 17:10 EugenMayer

@Nargonath I also have a need for this. I also have some bandwidth to make a PR for it if you could give a little direction how it might be pulled off...

tasmith039 avatar Nov 24 '20 14:11 tasmith039

Sorry I don't have time to maintain this project anymore so I'll archive it and add a note in the README. Feel free to fork it as you see fit.

Nargonath avatar Apr 24 '24 08:04 Nargonath