Syntax Highlighting for Docker and Yaml (#177)

* Implement dynamic component for docker and yaml prism components. Also removes chunk limit for lazy-loading.

* Fix eslint with babel-eslint and remove unusued LimitChunkCount plugin.
This commit is contained in:
Alex Howes
2020-10-14 15:49:53 +01:00
committed by GitHub
parent 40aed64034
commit 3aba7956ef
7 changed files with 140 additions and 9 deletions

View File

@@ -25,7 +25,6 @@ THE SOFTWARE.
*/
const path = require('path');
const { LimitChunkCountPlugin } = require('webpack').optimize;
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
const DuplicatePackageCheckerPlugin = require('duplicate-package-checker-webpack-plugin');
@@ -37,7 +36,6 @@ module.exports = {
configureWebpack: {
node: false, // Disable Node.js polyfills (Buffer etc.) -- This will be default in Webpack 5
plugins: [
new LimitChunkCountPlugin({ maxChunks: 1 }), // Generate a single CSS & JS file for easy embedding
process.argv.includes('--analyze') && new BundleAnalyzerPlugin(),
process.argv.includes('--analyze') && new DuplicatePackageCheckerPlugin(),
].filter(x => !!x),