create-react-app-hack icon indicating copy to clipboard operation
create-react-app-hack copied to clipboard

Hacking create-react-app to work with Preact & LESS without ejecting

Results 5 create-react-app-hack issues
Sort by recently updated
recently updated
newest added

We don't need to support IE8 & IE9 anymore… > This is how you can modify `babel`'s target settings, not just IE ;) The same way it was possible to...

I like `LESS`, let's throw it on the pipeline! I made a horrible module to watch and compile `LESS` into `CSS` called [node-less-chokidar](https://github.com/sampi/node-less-chokidar). It has a really huge [bug](https://github.com/sampi/node-less-chokidar#known-bug). Hook...

If you don't feel secure enough, you can always add [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity) to your static assets. > This is how you can add `webpack` plugins, not only SRI ;)

It's time to get hacking! The main idea here is that we alias `react*` modules with their `preact*` equivalents and pull in `preact-compat` to make sure the API stays the...

Let's start by bootstrapping the project with create-react-app: ``` npx create-react-app create-react-app-hack ``` File sizes: |File name|Before gzip|After gzip| |----------|-----------|----------| |build/static/js/main.a3b22bcc.js|123.67 kB|38.06 kB| |build/static/css/main.c17080f1.css|650 B|299 B| Source Map Analyzer output: