craftpack
v0.0.16
Published
Collection of different webpack/rollup configurations to make life easier and don't configure them for every single project.
Readme
craftpack
Craftpack is small utility that provides common Webpack configuration used to TypeScript Node.js application. In future it will become an CLI to bundle React.js/Node.js applications with TypeScript support.
- Friendly Error Handling
- Build Progress Bar
- Extendable
Usage
Install two important packages as a development deps:
yarn add webpack craftpack -DCreate a webpack.config.js file with following content (mostly), if you need to change this, don't worry and go ahead.
const configure = require("craftpack");
const path = require("path");
module.exports = configure({
output: {
filename: "[name].bundle.js",
path: path.join(__dirname, "dist"),
},
entry: {
main: path.join(__dirname, "src", "index.ts"),
},
});Update scripts in your package.json, there you can use my set.
{
"start:dev": "webpack -watch",
"build": "webpack"
}Future Plans?
- [ ] CLI
- [ ] Nodemon Integration
