Home

Awesome

Tâmia Build

Build Status

Webpack builder and dev server for Tâmia.

Installation

$ npm install --save-dev tamia-build

Add to your package.json:

{
  "scripts": {
    "start": "tamia server",
    "bundle": "tamia bundle"
  }
}

Usage

Use new npm scripts:

Configuration

Create a config/tamia.config.js file.

Available options:

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;
};

Troubleshooting

Run builder in verbose mode:

$ npm start -- --verbose

License

The MIT License, see the included License.md file.