Skip to content

Releases: DoSomethingArchive/webpack-config

v6.0.0

13 Sep 16:10
Compare
Choose a tag to compare

Removes the PostCSS configuration to allow individual projects to set up their own configuration and specify which plugins PostCSS should use during the build process.

Projects using this package should now provide their own PostCSS config by adding a postcss.config.js file in the root of the project.

Example:

// postcss.config.js

module.exports = {
  sourceMap: true,
  plugins: [require('tailwindcss'), require('autoprefixer')],
};

v5.2.0

08 Aug 15:18
Compare
Choose a tag to compare

Removes the use of MQPacker which was causing issues with media queries and CSS Grid.

v4.1.0

19 Apr 15:09
1ee677f
Compare
Choose a tag to compare

Independently hash chunks for better long-term caching.

v3.0.0

21 Nov 17:14
3b5f57d
Compare
Choose a tag to compare

Updates to Webpack 3, enables scope hoisting, and fixes minification for CSS files.

Important: Make sure to upgrade to @dosomething.org/babel-config^2.0.0 when using this!

v2.0.1

25 Apr 20:44
Compare
Choose a tag to compare

Remove LodashWebpackPlugin from the default config. (#6)

v2.0.0

25 Apr 20:56
Compare
Choose a tag to compare

This release updates our Webpack config for Webpack 2! It includes a standalone developer build option, automatically hashed asset filenames & revision manifest, and much improved customization method powered by webpack-merge.

Upgrade Guide

Update Webpack and this config package:

"devDependencies": {
    "@dosomething/webpack-config": "^2.0.0",
   // ...
    "webpack": "^2.4.1",
    "webpack-dev-server": "^2.4.2"
}

Update your scripts in your application's package.json:

  "scripts": {
-    "start": "webpack",
+    "start": "NODE_ENV=development webpack --watch",
+    "build:dev": "NODE_ENV=development webpack",
     "build": "NODE_ENV=production webpack",
  }

By default, outputted files will all have hashes (like app-e403528026001172451e.js) to prevent caching issues. If you're using Laravel, you can use the mix() helper to get the versioned filename.

That's probably it! If you made an customizations to your config, you may need to update those as well.

v1.1.1

11 Jul 21:18
Compare
Choose a tag to compare

Fixes issue with inlining NODE_ENV for conditional dev/production builds.