2.0.3 • Published 6 days ago

@ennit/webpack-config v2.0.3

Weekly downloads
195
License
BSD-3-Clause
Repository
bitbucket
Last release
6 days ago

README

prerelease Test

Webpack 5.x Configuration including Babel, Node-sass and postcss. With Optimization for Production Builds

Configuration

  • install module per npm
  • remove old webpack Config (clear node_modules)
  • copy webpack.config.js AND themes.json to your projects root folder
  • configure themes.json according to your setup.
    • multiple themes for JS and CSS are possible
    • entry Path is relative to project Root
    • output is relative to webpack configs output.path
  • check and modify config path in webpack config

    const THEMES = require('./cfg/webpack/themes.json');

  • update old webpack run scripts in package.json

    "build": "NODE_ENV=production webpack --bail --progress", "watch": "NODE_ENV=development webpack --watch --progress",

  • enjoy

Issues

  • mini-css-extract-plugin Dieses plugin extrahiert CSS aus dem JS (webpack buildet eigentlich nur js). Das Problem ist aktuell, dass die fast leeren JS Dateien aus dem das CSS extrahiert wurde nicht richtig gelöscht wird. Genauer funktioniert das "removeEmptyChunks" nicht wie es soll. Deswegen haben wir eine Notlösung gebaut, welche mit Hilfe eines Plugins (remove-files-webpack-plugin), die unnötigen Dateien löscht (https://github.com/webpack/webpack/issues/116719.
2.0.3

6 days ago

2.0.2

6 days ago

2.0.8

15 days ago

2.0.1

8 months ago

2.0.0

10 months ago

1.4.7

1 year ago

1.4.6

2 years ago

1.4.5

2 years ago

1.4.4

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.3.2

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.7

2 years ago

1.2.7-next.0

2 years ago

1.2.6

2 years ago

1.2.5

3 years ago

1.2.0

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.1.13

3 years ago

1.1.12

3 years ago

1.1.11

3 years ago

1.1.10

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago