$ npm install tapas-build -g
$ tapas-build --index pathToYourIndex.html <entry> <output>
-h, --help
-p, --production
-i. --index
You can also add the config variables tapas
to your projects package.json like this:
"tapas": {
"entry": "./client/app.js",
"output": "./build",
"index": "./template.html",
"vendor": ["react", "react-dom"],
"babelLoaderPlugins": ["./scripts/babelRelayPlugin"],
"port": "12306",
"cssModules": true,
"aliasRoot" : "#",
"resolveRoot": "/absolute/path/to/your/src/directory",
"autoExternals": true,
"proxy": {
"/api": "http://example.com:23000/no-slash-at-the-end",
"/backend": "http://example.com"
}
}
The keys of tapas['proxy'] follows the pattern of parameter 'path' used in app.use([path], middleware). Check the details here.
Copyright (c) 2015 Tapas Tech