1.3.2 • Published 6 years ago
tamia-build v1.3.2
Tâmia Build
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:
npm start
to start a dev server.npm run bundle
to make a production build of JavaScript and CSS.
Configuration
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;
};
Troubleshooting
Run builder in verbose mode:
$ npm start -- --verbose
License
The MIT License, see the included License.md file.
1.3.2
6 years ago
1.3.1
6 years ago
1.3.0
7 years ago
1.2.7
7 years ago
1.2.6
7 years ago
1.2.5
7 years ago
1.2.4
7 years ago
1.2.3
7 years ago
1.2.2
7 years ago
1.2.1
7 years ago
1.2.0
7 years ago
1.1.0
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago
0.4.0
8 years ago
0.3.1
8 years ago
0.3.0
8 years ago
0.2.1
8 years ago
0.2.0
8 years ago
0.1.0
8 years ago