Open lmuzquiz opened 7 years ago
@lmuzquiz Did you somehow solved this? I just hit the same problem.
same issue here.. any solution for this yet?
found a solution,, not sure if this is the best solution.. I learn that PurifyCSSPlugin is removing css that isn't declared in the dom, so modal and fade is being removed by PurifyCSSPlugin,, so all you have to do is whitelist these specific class.
https://github.com/webpack-contrib/purifycss-webpack infos about the plugin.
here is how i have resolved the modal issue. just search for "new PurifyCSSPlugin" in your webpack.config.js
new PurifyCSSPlugin({ paths: glob.sync(path.join(__dirname, 'src/*.html')), purifyOptions: { whitelist: ['fade','in','open', '*modal*'] } })
For some reason, the bootstrap modal and the dropdown menu won't open on the dist folder when using the PurifyCSSPlugin