Let's use 👁🐍🧰itk with create-react-app today!
This is a plugin for @craco/craco.
Try it!npx create-react-app example
cd example
In your create-react-app project, install modules:
npm install --save @craco/craco craco-itk itk
# or
yarn add @craco/craco craco-itk itk
Rewrite npm scripts in package.json
as following:
{
// ...
"scripts": {
"start": "craco start", // react-scripts -> craco
"build": "craco build", // react-scripts -> craco
"test": "craco test", // react-scripts -> craco
"eject": "react-scripts eject"
},
// ...
}
Create craco.config.js
in the proejct root:
const CracoItkPlugin = require("craco-itk");
module.exports = {
plugins: [
{
plugin: CracoItkPlugin()
}
]
};
Setup is complete! Enjoy your ITK life.🏝
This package was inspired by craco-cesium.