강의

멘토링

로드맵

Understanding and Practice of Frontend Development Environment (webpack, babel, eslint..)

I can understand pre-existing development environments. I can create a development environment from scratch.

(4.9) 216 reviews

3,041 learners

Level Intermediate

Course period Unlimited

Node.js
Node.js
Webpack
Webpack
Babel
Babel
ESLint
ESLint
Node.js
Node.js
Webpack
Webpack
Babel
Babel
ESLint
ESLint

If you are having problems with copy-webpack-plugin, please read this. (copy-webpack-plugin major update 2020-05)

When using copy-webpack-plugin, you may encounter problems with the webpack build.

cause

Backwards incompatibility due to major update of copy-webpack-plugin

The signature of the existing constructor function has changed.

- Existing: CopyPlugin(patterns, options)

- Change: CopyPlugin({ patterns, options })

Solution

// 기존: new CopyPlugin([ { from: "./node_modules/axios/dist/axios.min.js", to: "./axios.min.js", // 목적지 파일에 들어간다 }, ]), // 변경 (이렇게 변경하세요) new CopyPlugin({ patterns: [ // patterns 키를 추가합니다. { from: "./node_modules/axios/dist/axios.min.js", to: "./axios.min.js", // 목적지 파일에 들어간다 }, ] }),
Comment