기본 콘텐츠로 건너뛰기

webpack json cheerio

When webpack the cheerio library, there is an error with index.js requiring package.json.

To solve this problem,

    1. use json loader      
       { test: /\.json$/, loader: "json-loader" }

    2. set resolve with json file
        extensions: ['', '.js', '.json']


https://github.com/webpack/webpack/issues/184

댓글

댓글 쓰기

이 블로그의 인기 게시물