REACT篇 一月 15, 2020

React WebSocket 的一些配置

文章字数 4.4k 阅读约需 4 mins.

spring boot 后台的配置

这里记录一些坑
使用 gradle 配置, 其中移除了 Tomcat , 使用的是 Undertow
先引入依赖

implementation ('org.springframew...

查看全文

REACT篇 十二月 26, 2019

React-App-Rewired 的一些配置

文章字数 2.6k 阅读约需 2 mins.

添加多页面配置

之前写过一篇 npm eject 之后的多页面配置,可以往前翻阅 , 现在不想 eject, 该怎么配置多页面?

  1. npm install react-app-rewire-multiple-entry –save-dev

  2. 在 config-overrides.js 中添加配置
    现在 public 里复制一个 html 页面, 在 src 目录下再新增一个目录,里面的文件拷贝 index 的稍微改动下,
    大致目录如下:

-serviceWorker.js
-metadata.js...

查看全文

REACT篇 九月 10, 2019

Create-React-App 的一些配置

文章字数 6.3k 阅读约需 6 mins.

添加多页面配置

  1. npm run eject
  2. 修改 webpack.config.js

entry 修改:
这里我加了一个 update.html 页面

    entry: {
      index: [
        // Include an alternative client for WebpackDevServer. A client's job is to
        // connect to WebpackDevServer by a socket and get notified about changes....
查看全文

REACT篇 六月 19, 2018

React 项目使用 IDEA 进行调试

文章字数 1k 阅读约需 1 mins.

  1. You would need to have WebStorm and JetBrains IDE Support Chrome extension installed.
    需要安装 JetBrains IDE Support 的 chrome 插件

  2. In the WebStorm menu Run select Edit Configurations…. Then click + and select JavaScript Debug. Paste http://localhost:3000...

查看全文
0%