A build process in a command. Just run npx sfo <your entry file>
and SFO takes care of spinning up a build process and dev server for you!
In your entry file, just export a default function that accepts a DOM node. It's then up to you to render whatever you want to the DOM!
Nope! It works without whatever you want!
import React from 'react';
import { render } from 'react-dom';
import './my-styles.css';
const App = () => <h1>Hello World!</h1>;
export default function (node) {
render(<App />, node);
}
- Webpack
- Babel
- preset-env
- Flow annotation removal
- JSX
- Importable CSS which is run through PostCSS
- cssnano
- postcss-import
- cssnext
- Flow
- ESLint with rules for Flow, Airbnb, and Prettier
Feature-not-a-bug.
Lots to do here. This is just the start.