Skip to content

webpack 2/3 new & npm clean #7

@xgqfrms-GitHub

Description

@xgqfrms-GitHub

webpack2 new

webpack2 & npm clean

https://www.npmjs.com/package/rimraf

rimraf

https://github.com/isaacs/rimraf

The UNIX command rm -rf for node.

// API

rimraf(f, [opts], callback)

https://en.wikipedia.org/wiki/Rm_(Unix)

$ rm -rf

$ rm -rf


# rm === remove

# -r === recursive

# -f === force

https://gist.github.com/xgqfrms-GitHub/f71453cff397181ad927c5217ec9b7e4

<script>
    {
        "scripts": {
            "build": "webpack",
            "clean": "rimraf ./dist/*",
            "dev": "webpack-dev-server",
            "prod": "npm run clean && webpack -p"
        }
    }
</script>



<script>
    {
        "scripts": {
            "build": "webpack",
            "dev": "webpack",
            "prod": "npm run clean && webpack -production"
        }
    }
</script>

webpack2 & npm clean & rimraf

https://www.npmjs.com/package/rimraf

https://github.com/isaacs/rimraf

https://www.npmjs.com/package/gulp-clean

https://www.npmjs.com/package/gulp-clean-css

https://www.npmjs.com/package/clean-webpack-plugin

https://www.npmjs.com/package/friendly-errors-webpack-plugin

https://www.npmjs.com/package/webpack-cleanup-plugin

https://gist.github.com/xgqfrms-GitHub/f71453cff397181ad927c5217ec9b7e4

https://gist.github.com/xgqfrms-GitHub/19829c5d830ea4b2fe0c6ef5a622a1f5

https://github.com/stanzhai/be-a-professional-programmer

https://github.com/kpaxqin/react-from-scratch

https://github.com/zpao/building-react-from-scratch

https://github.com/reactjs/express-react-views

https://github.com/zpao/qrcode.react

https://github.com/facebook/draft-js

<QRCode
    value={"https://www.xgqfrms.xyz/"}
    size={320}
    bgColor={"#00ff80"}
    fgColor={"#ff00ff"}
    level={"L"}
/>

https://zpao.github.io/qrcode.react/

https://www.xgqfrms.xyz/

https://facebook.github.io/react/docs/optimizing-performance.html#use-the-production-build

https://facebook.github.io/react/contributing/implementation-notes.html

https://github.com/kpaxqin/react-from-scratch

https://kpaxqin.github.io/

https://kpaxqin.github.io/blog/2016/03/13/High-order_component_in_React

React进阶——使用高阶组件(Higher-Order Components)优化代码

http://tools.zhaishidan.cn/

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions