menu
Logo
  • Why azing?
  • Blog
  • Help
ENarrow_drop_down
  • DE
  • EN
Suche in Checklisten
search
azing Logo ENarrow_drop_down
  • DE
  • EN
  • Why azing?
  • Help
2sxc
drive_folder_upload
  • homeChecklist Templates
  • south

folder_sharedZ: Internal Stuff for the 2sxc-Dev Team

  • homeChecklist Templates
  • south

folder_sharedZ: Internal Stuff for the 2sxc-Dev Team

Folders and checklists

  • folder_sharedApp Auto-Installation Manager on 2sxc.org
  • folder_sharedContent App
  • folder_sharedDevelop Standard Apps
  • folder_sharedDocumentation
  • folder_sharedExtension: dnn-sxc-angular (NPM)
  • folder_sharedExternal Dependencies
  • folder_sharedFeatures Management
  • folder_sharedGlobal Content and Input Types
  • folder_sharedIntegration with Other Platforms
  • folder_sharedLicensing
  • folder_sharedOqtane
  • folder_sharedPart: Code Editor and Snippets
  • folder_sharedReleases of 2sxc
  • folder_sharedSetup Dev Environment
  • folder_sharedTesting 2sxc
  • folder_sharedTesting: Edit UI
  • folder_sharedThemes
  • folder_sharedTutorials - Creation and Maintenance
  • folder_sharedUI - Main
  • check_circleAdd SVG into inline HTML
  • check_circleFeature - Create and Complete
  • check_circleUpdate Webpack 4 -> 5

Parts (1) expand_more

These are small document-parts which are used in other documents. They are not a starting point for any real activity. Because of this, they will be listed further down and the search will not list them unless requested. 

  • insert_drive_filewebconfig.config.js v5

Update packages

  1. Install npm-check-updates by running npm install -g npm-check-updates
  2. run ncu in terminal
  3. check all updated dependencies
  4. run ncu -u to update all dependencies in package.json
    run ncu -u -x <name> to exclude packages
  5. run npm install

Remove unnecessary v4 packages

In webpack 5 some packages are no longer necessary because are now included. For us its usually this few:

  • webpackbar
  • terser-webpack-plugin
  • optimize-css-assets-webpack-plugin
  • friendly-errors-webpack-plugin
  • file-loader
  • run npm uninstall webpackbar terser-webpack-plugin optimize-css-assets-webpack-plugin friendly-errors-webpack-plugin file-loader

Update your webpack.config.js

  1. Add caching
    cache: {
    type: 'filesystem',
    cacheDirectory: path.resolve(__dirname, '.temp_cache'),
    compression: 'gzip',
    },
  2. remove optimization block
  3. remove plugins WebpackBar and FriendlyErrorsWebpackPlugin
  4. remove file-loader module
  5. remove "imports/require" like TerserPlugin, OptimizeCSSAssetsPlugin, optimize-css-assets-webpack-plugin, webpackbar
  6. Check this example for compare

Additional Information

Should an error message appear regarding PostCss. Delete the node_modules folder and the package-lock.json file and run npm install again.

Logo
Legal | Content Copyright CC-BY 4.0
bug_reportReport Bug
  • info
  • Links
  • Permissions
code Share
code
URL copied to clipboard.
Embed Checklist close
Copy Copy
Content Copyright

CC-BY 4.0

Translations

None

2sxc - Content Management for DNN & Oqtane Logo

2sxc - Content Management for DNN & Oqtane

QR-Code
azing.org/2sxc/r/YD42YZPI
View & Use

Public (can be used by everybody)

Edit & Admin

Default (all members can edit)

This catalog has a simple permission model, where all members have the same permissions. For advanced permissions, upgrade to Enterprise.

Here you can see how this document is used and linked by other documents

Used in (0)

Others referencing this

Uses these (1)

Documents linked from this document

  1. webconfig.config.js v5
How it Behaves

How this document is categorized changes how it behaves.

This is a main document, it is listed normally and appears in search result.

Type

This is a Checklist. Lists are converted into checkboxes.

Get something to say?

Comment to start a discussion or make a note
send

please log on to chat

close

Durchsuche ganz Azing