1. cooking
A modular build tool based on webpack.
cooking
Package: cooking
Created by: ElemeFE
Last modified: Mon, 13 Jun 2022 23:05:12 GMT
Version: 1.5.4
License: MIT
Downloads: 143
Repository: https://github.com/ElemeFE/cooking

Install

npm install cooking
yarn add cooking

cooking

npm
npm
gitter

更易上手的前端构建工具,基于 webpack

Installation

 npm i cooking -D

webpack 1

 npm i babel-core babel-loader css-loader file-loader postcss postcss-loader\
 html-loader html-webpack-plugin json-loader style-loader url-loader\
 webpack@1 webpack-dev-server@1 extract-text-webpack-plugin@1 -D

webpack 2

 npm i babel-core babel-loader css-loader file-loader postcss postcss-loader\
 html-loader html-webpack-plugin json-loader style-loader url-loader\
 [email protected] webpack-dev-server@beta extract-text-webpack-plugin@beta -D

Usage

cooking.conf.js

 var cooking = require('cooking')

cooking.set({
  entry: './src/index.js',
  dist: './dist',
  template: './index.tpl',
  hash: true,
  extractCSS: true,
  devServer: { port: 8080 }
})

module.exports = cooking.resolve()
 # development
node_modules/.bin/cooking watch

# production
node_modules/.bin/cooking build -p

# or use webpack
NODE_ENV=production webpack --config cooking.conf.js

License

MIT

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin