기본 콘텐츠로 건너뛰기

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

댓글

댓글 쓰기

이 블로그의 인기 게시물

Picasso vs Glide in Android

I started a new project with Picasso first, but had a problem with the orientation of photos. Picasso didn't display a photo properly according to it's orientation. So I changed to Glide which solve the problem. Use 'Glide' if you want to be safe about photo's orientation,