These are chat archives for webpack/webpack/dev

13th
Oct 2016
Bart Buczek
@GalGavu
Oct 13 2016 08:07

Hi,
I’m using webpack in my project and I’m using loaders to load some scripts like this:

<script
    dangerouslySetInnerHTML={{
    __html: require('!!raw!../myScript.js'),
    }}
/>

However I would like to have ’!!raw! as variable. Probably in the future myScript.js as well. Is there any way to use variable instead of simple string?
(just in case I’m working with react and RSK basically)