项目作者: rongfengliang

项目描述 :
webpack-plugin-demo
高级语言: JavaScript
项目地址: git://github.com/rongfengliang/webpack-plugin-demo.git
创建时间: 2019-02-14T05:49:05Z
项目社区:https://github.com/rongfengliang/webpack-plugin-demo

开源协议:

下载


demo webpack plugin

how to running

  • bootstrap lerna project
  1. yarn bootstrap
  • run plugin
  1. yarn build
  • some result
  1. yarn run v1.13.0
  2. $ lerna run build
  3. lerna notice cli v3.8.0
  4. lerna info Executing command in 1 package: "npm run build"
  5. lerna info run Ran npm script 'build' in 'app' in 2.1s:
  6. > app@0.0.0 build /Users/dalong/mylearning/webpack-plugin-demo/userlogin/packages/app
  7. > webpack
  8. Hello World!
  9. { name: 'dalong demo plugin', version: 'v1.0.0' }
  10. Hash: 99b708a3fc0fdba5e1c2
  11. Version: webpack 4.29.3
  12. Time: 350ms
  13. Built at: 2019-02-14 13:45:22
  14. Asset Size Chunks Chunk Names
  15. my-first-webpack.bundle.js 1020 bytes 0 [emitted] main
  16. Entrypoint main = my-first-webpack.bundle.js
  17. [0] ./lib/app.js 145 bytes {0} [built]
  18. WARNING in configuration
  19. The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.
  20. You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/
  21. lerna success run Ran npm script 'build' in 1 package in 2.1s:
  22. lerna success - app
  23. Done in 3.05s.