Permalink
Browse files

Merge: chore/webpack → chore/start

  • Loading branch information...
niedzielski committed Feb 13, 2018
2 parents 50acee2 + 501287a commit e17e3449871222ecfc9a5df672778b24f651977a
Showing with 15 additions and 24 deletions.
  1. +6 −3 changelog.md
  2. +5 −5 package.json
  3. +1 −1 readme.md
  4. +3 −15 webpack.config.babel.js
@@ -1,9 +1,12 @@
### v4.9.1
### v5.0.1
- Chore: replace Rollup.js bundler with Webpack; there are no anticipated client changes necessary but integrators should smoke test CSS and JavaScript functionality, especially on older devices, and app devs should verify their development workflows
- Chore: rename NPM `dev` script to canonical `start`
### v4.9.0
- New: consolidated 1st paragraph relocation transform
### v5.0.0
- Breaking: removed 'fragment' parameter from 'hideRedLinks' method
- New: consolidated 1st paragraph relocation transform with 'moveLeadIntroductionUp' kickoff method
- Update: bump Babel iOS target version to 10.3 and Android to 4.4
- Fix: improved collapsed table header collection
### v4.8.0
- New: CollectionUtilities methods for gathering page issues and disambiguation information
@@ -1,6 +1,6 @@
{
"name": "wikimedia-page-library",
"version": "4.8.0",
"version": "5.0.0",
"description": "Cross-platform JavaScript and CSS library for Wikimedia apps",
"keywords": [
"Wikipedia",
@@ -22,7 +22,7 @@
"scripts": {
"lint": "eslint --cache --max-warnings 0 --ext .js --ext .json --ext .html",
"lint:all": "npm run -s lint .",
"build": "NODE_ENV=production webpack -p",
"build": "NODE_ENV=production webpack",
"build:watch": "webpack -dw",
"serve:watch": "webpack-dev-server -dw",
"test:size": "bundlesize",
@@ -76,15 +76,15 @@
"bundlesize": [
{
"path": "build/wikimedia-page-library-override.css",
"maxSize": "0.1KB"
"maxSize": "0.2KB"
},
{
"path": "build/wikimedia-page-library-transform.css",
"maxSize": "22.1KB"
"maxSize": "25.7KB"
},
{
"path": "build/wikimedia-page-library-transform.js",
"maxSize": "8.7KB"
"maxSize": "12.6KB"
}
]
}
@@ -21,7 +21,7 @@ Presently we are consolidating duplicate Android and iOS Wikipedia app implement
### What wikimedia-page-library delivers
- **wikimedia-page-library-transform.js** bundle of all transform JS
- **wikimedia-page-library-transform.css** bundle of all CSS required by the bundled transform JS
- **wikimedia-page-library-transform.js** an unwanted [extraneous build product] that may safely be ignored
- **wikimedia-page-library-override.js** an unwanted [extraneous build product] that may safely be ignored
- **wikimedia-page-library-override.css** optional CSS overrides for improved appearance that are independent of transforms
[extraneous build product]: https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/518
@@ -3,7 +3,6 @@ import * as pkg from './package.json'
import * as webpack from 'webpack'
import CleanPlugin from 'clean-webpack-plugin'
import ExtractTextPlugin from 'extract-text-webpack-plugin'
import UglifyJSPlugin from 'uglifyjs-webpack-plugin'
const PRODUCTION = process.env.NODE_ENV === 'production'
@@ -31,8 +30,8 @@ const config = {
performance: {
hints: PRODUCTION ? 'error' : false,
maxAssetSize: 96 * 1024,
maxEntrypointSize: 128 * 1024
maxAssetSize: 128 * 1024,
maxEntrypointSize: 192 * 1024
},
module: {
@@ -56,10 +55,7 @@ const config = {
loader: 'style-loader',
options: { hmr: false }
},
use: [
{ loader: 'css-loader', options: { minimize: PRODUCTION } },
'postcss-loader'
]
use: [{ loader: 'css-loader' }, 'postcss-loader']
})
}
]
@@ -88,12 +84,4 @@ const config = {
]
}
if (PRODUCTION) {
config.plugins.push(new UglifyJSPlugin({
cache: true,
parallel: true,
sourceMap: true
}))
}
export default config

0 comments on commit e17e344

Please sign in to comment.