Skip to content

2.1 Webpack 配置 React 开发环境 #6

Description

@theJian

Webpack 使用一个名为 webpack.config.js 的配置文件,要编译 JSX,先安装对应的 loader: npm install babel-loader --save-dev

在我的环境下是 npm install babel-loader babel-core --save-dev, 不然执行 webpack -d --watch 会报找不到 babel-core 的错误.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions