Skip to content

Commit

Permalink
FixStyleOnlyEntriesPlugin is fixed, update it & other stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ForsakenHarmony committed Mar 13, 2019
1 parent 1ce9a90 commit d265d7b
Show file tree
Hide file tree
Showing 4 changed files with 877 additions and 433 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
},
"devDependencies": {
"babel-eslint": "^10.0.1",
"eslint": "^5.13.0",
"eslint": "^5.15.1",
"eslint-config-prettier": "^4.1.0",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-react": "^7.7.0",
"husky": "^1.3.1",
"lerna": "^3.13.1",
"lint-staged": "^8.1.3",
"lint-staged": "^8.1.5",
"prettier": "^1.16.4"
},
"husky": {
Expand Down
5 changes: 2 additions & 3 deletions packages/cli/lib/lib/webpack/webpack-base-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const SizePlugin = require('size-plugin');
const autoprefixer = require('autoprefixer');
const requireRelative = require('require-relative');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
// const FixStyleOnlyEntriesPlugin = require('webpack-fix-style-only-entries');
const FixStyleOnlyEntriesPlugin = require('webpack-fix-style-only-entries');
const ProgressBarPlugin = require('progress-bar-webpack-plugin');
const ReplacePlugin = require('webpack-plugin-replace');
const createBabelConfig = require('../babel-config');
Expand Down Expand Up @@ -244,8 +244,7 @@ module.exports = function(env) {
Fragment: ['preact', 'Fragment'],
}),
// Fix for https://github.com/webpack-contrib/mini-css-extract-plugin/issues/151
// Broken https://github.com/fqborges/webpack-fix-style-only-entries/pull/13
// new FixStyleOnlyEntriesPlugin(),
new FixStyleOnlyEntriesPlugin(),
// Extract CSS
new MiniCssExtractPlugin({
filename: isProd ? '[name].[contenthash:5].css' : '[name].css',
Expand Down
35 changes: 18 additions & 17 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,25 @@
"bugs": "https://github.com/developit/preact-cli/issues",
"homepage": "https://github.com/developit/preact-cli",
"devDependencies": {
"eslint": "^5.14.1",
"eslint": "^5.15.1",
"html-looks-like": "^1.0.2",
"jest": "^24.1.0",
"jest": "^24.5.0",
"lerna": "^3.13.1",
"lint-staged": "^8.1.4",
"lint-staged": "^8.1.5",
"mkdirp": "^0.5.1",
"ncp": "^2.0.0",
"node-sass": "^4.9.0",
"p-retry": "^3.0.1",
"p-retry": "^4.0.0",
"preact": "^8.1.0",
"preact-compat": "^3.14.3",
"preact-render-to-string": "^4.1.0",
"preact-router": "^2.6.1",
"puppeteer": "^1.3.0",
"puppeteer": "^1.13.0",
"sass-loader": "^7.0.1"
},
"peerDependencies": {
"preact": "*"
"preact": "*",
"preact-render-to-string": "*"
},
"dependencies": {
"@babel/core": "^7.3.4",
Expand All @@ -74,21 +76,21 @@
"@babel/plugin-transform-react-jsx": "^7.3.0",
"@babel/preset-env": "^7.3.4",
"@preact/async-loader": "^3.0.0-next.16",
"autoprefixer": "^9.4.9",
"autoprefixer": "^9.4.10",
"babel-esm-plugin": "^0.4.0",
"babel-loader": "^8.0.5",
"babel-plugin-macros": "^2.4.5",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"console-clear": "^1.0.0",
"copy-webpack-plugin": "^5.0.0",
"copy-webpack-plugin": "^5.0.1",
"critters-webpack-plugin": "^1.3.3",
"cross-spawn-promise": "^0.10.1",
"css-loader": "^2.1.0",
"css-loader": "^2.1.1",
"ejs-loader": "^0.3.0",
"esm": "^3.2.7",
"esm": "<=3.2.14",
"fast-async": "^6.3.7",
"file-loader": "^3.0.1",
"get-port": "^4.1.0",
"get-port": "^4.2.0",
"gittar": "^0.1.0",
"glob": "^7.1.3",
"html-webpack-exclude-assets-plugin": "0.0.7",
Expand All @@ -100,14 +102,13 @@
"mini-css-extract-plugin": "^0.5.0",
"minimatch": "^3.0.3",
"optimize-css-assets-webpack-plugin": "^5.0.1",
"ora": "^3.0.0",
"ora": "^3.2.0",
"postcss-loader": "^3.0.0",
"preact-render-to-string": "^4.1.0",
"progress-bar-webpack-plugin": "^1.12.1",
"promise-polyfill": "^8.1.0",
"prompts": "^2.0.3",
"raw-loader": "^1.0.0",
"react-hot-loader": "^4.7.1",
"react-hot-loader": "^4.8.0",
"require-relative": "^0.8.7",
"rimraf": "^2.6.1",
"sade": "^1.4.1",
Expand All @@ -119,10 +120,10 @@
"update-notifier": "^2.5.0",
"url-loader": "^1.0.1",
"validate-npm-package-name": "^3.0.0",
"webpack": "^4.29.5",
"webpack-bundle-analyzer": "^3.0.4",
"webpack": "^4.29.6",
"webpack-bundle-analyzer": "^3.1.0",
"webpack-dev-server": "^3.2.1",
"webpack-fix-style-only-entries": "^0.2.0",
"webpack-fix-style-only-entries": "^0.2.1",
"webpack-merge": "^4.1.0",
"webpack-plugin-replace": "^1.2.0",
"which": "^1.2.14"
Expand Down
Loading

0 comments on commit d265d7b

Please sign in to comment.