$ webpack app/index.js dist/bundle.js

20.02.07 14:24 작성 조회수 152

1

$ webpack app/index.js dist/bundle.js하면

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.

 - configuration.output.path: The provided value "" is not an absolute path!

   -> The output directory as **absolute path** (required).

경로 에러가 나는데

/d/github/LearnWebpack/getting-started/app

안됩니다..

답변 3

·

답변을 작성해보세요.

1

박준호님의 프로필

박준호

질문자

2020.02.07

결국은 해결했습니다. 웹팩사이트를 참조해서...

0

ㅜㅜ 고생이 많으셨네요 준호님, 진행하실 때 막히는 부분은 일단 https://joshua1988.github.io/webpack-guide/guide.html 이 문서를 최대한 참고해주시고 리뉴얼 강의는 빨리 올리겠습니다..! 감사합니다 :)

0

안녕하세요 준호님, `package.json` 파일에 아래와 같이 정리한 후 `npm run build`를 실행해보시겠어요?

"scripts": {
"build": "webpack"
},