first experimental indev version
Webbackpack provides a scheme for mounting JavaScript, TypeScript and React.js components into a backend-generated HTML page.
Configuration for Webpack to transpile these Javascript dialects into EcmaScript 5, along with SCSS->CSS compilation is included.
For now, see demo in dist/index.php.
TODO there will be more documentation too.
There are currently three options:
- just type
webpack
to quickly transpile sources into non-minified dev assest. - run
webpack -w
to watch and auto-compile all changes. - run
compile.sh
to purge all old assets and compile a minified, production version (do this before committing).
- If you've installed npm dependencies using yarn, you may
get
Error: ENOENT: no such file or directory, scandir '<project-path>/node_modules/node-sass/vendor'
. To bypass this error, runnpm rebuild node-sass
, it should fix the node-sass binary.