dssg / matching-tool

Integrating HMIS and criminal-justice data
Other
7 stars 7 forks source link

json-loader needed #397

Closed thcrock closed 6 years ago

thcrock commented 6 years ago

I'm unsure exactly what package changed to spur this, but we need json-loader in webpack now.

In webapp/frontend/package.json, we need to add the json-loader package.

"json-loader": "^0.5.7",

In webapp/frontend/webpack.config.prod.js, in the 'loaders' section, add this block, between the 'js' and 'css' loaders:

  {

    test: /\.json$/,

    include: /node_modules/,

    loader: 'json-loader'

  },