0.1.3 • Published 3 years ago
@mressex/cubex-bundler v0.1.3
Cubex Bundler
Based off of an earlier version of laravel mix. But with a specfic use case
Usage:
Create a file called rollup.bundle.js
const Bundler = require('@mressex/cubex-bundler');
Bundler.entry('./src/_resources/entry.ts', './resources');
This will take the entry ts (can be js) and compile it to entry.min.js (entry.min.css) if importing sass or css into the file.
it can also be chained
Bundler
.entry('./src/_resources/entry.ts', './resources')
.entry('./src/_resources/entry2.ts', './resources');
then in your package add
"build": "rollup -c node_modules/cubex-bundler/setup/rollup.config.js",
"watch": "rollup --watch -c node_modules/cubex-bundler/setup/rollup.config.js",
example