This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://webpack.js.org/concepts | |
//webpack requires nodejs to work | |
// to run webpack manualy and not through npm, with custom config file: "npx webpack --config webpack.config.js" | |
//how a chunk file is loaded (whether synchronously or asynchronously) is decided by Webpack and you can’t force it to do otherwise | |
//https://itnext.io/react-router-and-webpack-v4-code-splitting-using-splitchunksplugin-f0a48f110312#1adc | |
const path = require(`path`); | |
const HtmlWebpackPlugin = require (`html-webpack-plugin`); | |
const HtmlWebpackInlineSourcePlugin = require('html-webpack-inline-source-plugin'); |