R
R
Roman Makarov2016-05-24 18:05:29
webpack
Roman Makarov, 2016-05-24 18:05:29

How to tell webpack to pick up minified versions of files from node_modules?

for example,
import React from 'react'
it will take react.js from node_modules/react/dist, where react.min.js is located next to it.
How to force to take react.min instead of react?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Makarov, 2016-05-24
@rmakarov

As an option - to set either an alias for each - but this is not very beautiful.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question