Skip to content

Releases: networkteam/nwt-frontend-scripts

v6.0.5

20 Oct 08:22

Choose a tag to compare

What's Changed

  • Feature: --noLivereload flag for dev setup by @Rasmizzle in #26
  • Webpack Test-Config: Ignore TS-Linting in node_modules by @Rasmizzle in #25

Full Changelog: v6.0.4...v6.0.5

v6.0.4

18 Oct 15:08

Choose a tag to compare

Switches out merging mechanis of webpack plugins merge.
This is an improvement and also a bugfix.

Improvement:

  • When a plugin is defined in custom webpack config that is already defined in common.webpack.js it is treated as one plugin that takes the default config and merges config of custom Webpack-Plugin onto it. This now also effects deeply nested configurations.

  • added tests for feature

Bugfix:

  • Fixes a bug where custom defined plugins in config would not be initialized

Note:
Deeply merging constructors only goes so far. If a default value of any used plugin in custom webpack config is initialized then it will overwrite the value defined in default config.

TypeScript Linting: exclude node_modules

18 Oct 10:41

Choose a tag to compare

  • excludes ´node_modules` from TS Linter
  • added path to tsconfig.json to ForkTsCheckerWebpackPlugin

Initialize Webpack Plugins only once

18 Oct 09:35

Choose a tag to compare

When a plugin is defined in custom Webpack Config that is already defined in common.webpack.js it is treated as two seperate plugins that are both being initialized.
With this change this behaviour changes the following way:
When a plugin is defined in custom webpack config that is already defined in common.webpack.js it is treated as one plugin that takes the default config and merges config of custom Webpack-Plugin onto it.

This makes it possible to overwrite certain behaviour of frontend-scripts.

Readd support for .env

08 Apr 10:13

Choose a tag to compare

adds fallback for env variables if not found in package.json

  • readded readable env keys:
    • BASE_PACKAGE_NAME
    • SITE_PACKAGE_NAME

Use sass (Dart SASS) instead of node-sass

22 Mar 18:37

Choose a tag to compare

As it becomes more and more troublesome to install node-sass on modern platforms and node-sass is deprecated anyway, we now switch to the sass package which is a pure JS Sass compiler.

There are some possible issues with existing projects:

  • The performance is a little worse for larger Sass files
  • There might will be incompatibilities, one that we found while testing was:
    • Using Sass Syntax in .css files was apparently ok with node-sass but sass throws an error in these cases

v5.2.0

10 Mar 13:26

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v5.0.1...5.2.0

Support TypeScript modules and tests

17 Nov 17:21
0f08073

Choose a tag to compare

Update to Webpack 5

22 Oct 08:49

Choose a tag to compare

What's Changed

  • Wp5 update by @hlubek in #5
  • Update to Webpack 5 by @URSchmidt in #6

New Contributors

  • @hlubek made their first contribution in #5
  • @URSchmidt made their first contribution in #6

Full Changelog: v4.0.4...v5.0.0

v4.0.4

14 Apr 06:49

Choose a tag to compare

4.0.4