How to use the ids function from webpack

Find comprehensive JavaScript webpack.ids code examples handpicked from public code repositorys.

190
191
192
193
194
195
196
197
198
199
new HtmlWebpackPlugin({
  chunksSortMode: 'none',
  template: plib.join(__dirname, 'templates', 'template.html'),
  title: jlab.name || 'JupyterLab'
}),
new webpack.ids.HashedModuleIdsPlugin(),
// custom plugin for ignoring files during a `--watch` build
new WPPlugin.FilterWatchIgnorePlugin(ignored),
// custom plugin that copies the assets to the static directory
new WPPlugin.FrontEndPlugin(buildDir, jlab.staticDir),
fork icon0
star icon3
watch icon1

1
2
3
4
5
6
7
8
9
10
const webpack = require('webpack');
const TerserPlugin = require('terser-webpack-plugin');
const DefinePlugin = webpack.DefinePlugin;
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
const WebpackBarPlugin = require('webpackbar');
const HashedModuleIdsPlugin = webpack.ids.HashedModuleIdsPlugin;
const getBabelConfig = require('./getBabelConfig');

const rootPath = path.join(__dirname, '../..');
module.exports = function ({ minimize }) {
fork icon557
star icon0
watch icon66