Giter Club home page Giter Club logo

lin-cms-react's People

Contributors

bongkai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

lin-cms-react's Issues

macOS上build一直出错

➜  lin-cms-react git:(master) ✗ npm run build

> [email protected] build /Users/admin/personal/Bongkai/lin-cms-react
> node scripts/build.js

Creating an optimized production build...
  build [==                  ] 10%(node:62627) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
Build completed in 70.435s

Failed to compile.

./src/components/base/dynamic-icon/Icons.tsx
  Line 1:22:   Expected linebreaks to be 'CRLF' but found 'LF'  linebreak-style
  Line 2:1:    Expected linebreaks to be 'CRLF' but found 'LF'  linebreak-style
  Line 3:9:    Expected linebreaks to be 'CRLF' but found 'LF'  linebreak-style
  Line 4:16:   Expected linebreaks to be 'CRLF' but found 'LF'  linebreak-style
  Line 5:20:   Expected linebreaks to be 'CRLF' but found 'LF'  linebreak-style
  Line 6:16:   Expected linebreaks to be 'CRLF' but found 'LF'  linebreak-style
  Line 7:18:   Expected linebreaks to be 'CRLF' but found 'LF'  linebreak-style
  Line 8:16:   Expected linebreaks to be 'CRLF' but found 'LF'  linebreak-style
  Line 9:19:   Expected linebreaks to be 'CRLF' but found 'LF'  linebreak-style
  Line 10:16:  Expected linebreaks to be 'CRLF' but found 'LF'  linebreak-style
  Line 11:24:  Expected linebreaks to be 'CRLF' but found 'LF'  linebreak-style
  Line 12:16:  Expected linebreaks to be 'CRLF' but found 'LF'  linebreak-style
  Line 13:27:  Expected linebreaks to be 'CRLF' but found 'LF'  linebreak-style

Search for the keywords to learn more about each error.


npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/admin/.npm/_logs/2020-07-21T01_38_21_715Z-debug.log
➜  lin-cms-react git:(master) ✗

代表林间有风团队表达崇高的敬意!

刚看了一下仓库的整体代码以及线上demo,整体来说还是相当不错的,这不是一个小项目,确实付出了比较多的时间。
.jsx里面的三目运算符使用的还不甚合理,记得优化一下,其它的结构几乎与vue版本无异,几乎也实现了全部功能,可见作者着实用心,让人感佩。
当然react的新特性hooks我还未看到,作者可以适当使用一下,毕竟新特性的噱头,很多人都愿意买单的,无论是为了作者自己的推广,还是学习规划。
另外redux的使用有些许臃肿,可以再适当拆分,当然如果使用mobx必然会更棒,redux的概念有时候很不友好,让人生畏。
最后,希望作者再接再厉,早日成为团队推荐react实现。

Webpack 编译较慢,build 后体积较大

作者,你好,感谢你分享的开源代码
我用这套开源代码用于项目中,随着不断开发,明显感觉到修改代码后,Webpack编译速度慢,调试的体验不如ant design pro 或 create react app 等脚手架
打包的时间较长 5min +, 体积 11M +
除了更新了ant design 4.6.6 没有其他大的改动,增加的基本是一些业务上的CRUD页面
Webpack 对一般前端不太友好,你自己写的webpack配置文件我没有详细去看,学习成本较高,请问可以做些优化或者给出一些建议吗?
谢谢!
webpack_issue

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.