Skip to content
This repository was archived by the owner on Aug 3, 2018. It is now read-only.

3. Update Webpack

Wiley Hilton edited this page Mar 30, 2018 · 1 revision

Resolve Extensions

Although it's such a minor thing, I try to avoid putting .jsx at the end of every "import" line as this can be completed by webpack. To do this add

        resolve: {
            extensions: ['.jsx', '.js', '.css', '.scss', '.jpeg', '.jpg', '.png', '.gif']
        },

to the config object in webpack. I also went through and removed the .jsx extensions from the import lines. The commit was 4f2e9d4bb931de876a3bf4ea2112b652d817051c

Clone this wiki locally