Webpack builder and dev server for Tâmia.
$ npm install --save-dev tamia-buildAdd to your package.json:
{
"scripts": {
"start": "tamia server",
"bundle": "tamia bundle"
}
}Use new npm scripts:
npm startto start a dev server.npm run bundleto make a production build of JavaScript and CSS.
Create a config/tamia.config.js file.
Available options:
rewrites: list of URL rewrites for dev server.
Config example:
module.exports = function(options, argv) {
if (argv.lang) {
// Redirect HTML pages to local folder
options.rewrites = [
'^/$ /' + argv.lang + '/index.html L',
'^([^.]*)$ /' + argv.lang + '$1.html',
];
}
return options;
};Run builder in verbose mode:
$ npm start -- --verboseThe MIT License, see the included License.md file.
