Webpack 4 comes with the following statement:     webpack.optimize.UglifyJsPlugin has been removed, please use config.optimization.minimize instead.   Fair enough, but I cannot find any information about configuring the UglifyJsPlugin instance runnin...
I would like to generate source maps for our production build with Webpack. I managed to generate it, but when I stop on a breakpoint in the debugger, variables are not resolved:    What am I doing wrong? How can I generate a source map that lets the...
I have a few JS and SCSS files. I need Webpack 4 to bundle each JS entry to one JS file and each SCSS entry to one CSS file. The JS files don't import the SCSS files. I try to do it with the following webpack.config.js:  const path = require('...
Per the tippy.js git hub page I installed it with npm:  npm i tippy.js   Now I have a .js source file that's used for a webpack 4 html page that gets output to my ./dist folder, but I don't know how to import it; my other option is just to in...
I have a simple js file that I am trying to use webpack 4 with:  const CopyPlugin = require('copy-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin') const CleanWebpackPlugin = require('clean-webpack-plugin&...
I'm developing a module that processes files from outside its root directory, so, for example, if I have the following folder structure:  Frontend -> src -> chunks -> js -> main.es6  Frontend -> src -> chunks -> scss -> st...
Can't seem to find any debug option or plugin in webpack to show what exactly went into a chunk.   Why do I need this? I've noticed cases where code splitting literally makes everything much larger then just sticking everything in a single fi...
I am trying to edit/understand the source of a modal plugin written in ES6, link HERE.   <div aria-hidden="true" class="modal micromodal-slide" id="modal-1">     <div class="modal__overlay" data-micromodal-clo...
So, I've been hunting and I can't seem to find anything unless my searching skills have gotten worse lately. But, what I'm looking for is to be able to generate two vendor bundles based on the entry point.  For example, I have 3 entry poi...
I'm trying to utilize the SplitChunksPlugin to produce separate bundles per each page/template in a MPA. When I use the HtmlWebpackPlugin, I get an html file for each page with a script tag pointing to the correct bundle. That is great! However,...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.