Giter VIP home page Giter VIP logo

Comments (4)

walkingOnAir avatar walkingOnAir commented on April 20, 2024 2

https://webpack.js.org/guides/migrating/
新版本全部用rules
rules: [ { test: /\.js$|\.jsx$/, loader: "eslint-loader", include: ${__dirname}/src, exclude: /bundle\.js$/, enforce: "pre" } ]

from reactjs101.

s1012602 avatar s1012602 commented on April 20, 2024

我在學習ch09遇到和你一樣的問題

from reactjs101.

dn-la avatar dn-la commented on April 20, 2024

@s1012602 我後來就直接使用比較低版本的webpack了 or 直接clone 檔案下來學習
不過之後在使用上我還是有疑問到底要用什麼版本XD

from reactjs101.

headhsu2568 avatar headhsu2568 commented on April 20, 2024

使用 webpack 2.3.3, 可以試試看以下這個寫法:
PreLoader 放在 rules 中有設定 enforce: 'pre' 的 block:

image

from reactjs101.

Related Issues (20)

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.