Nauseating Pumpkin Mush

    This package has been deprecated

    Author message:

    This package is no longer supported! we recommend webpack or poi for new frontend projects

    cooking

    1.5.4 • Public • Published

    cooking

    npm npm gitter

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

    Links

    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\
     webpack webpack-dev-server extract-text-webpack-plugin@2.0.0-beta.4 -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

    Install

    npm i cooking

    DownloadsWeekly Downloads

    51

    Version

    1.5.4

    License

    MIT

    Last publish

    Collaborators

    • qingwei.li