Skip to content

Commit

Permalink
Upgrade to webpack 4.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrotoff committed May 15, 2018
1 parent ad42027 commit 57a19ac
Show file tree
Hide file tree
Showing 12 changed files with 1,513 additions and 230 deletions.
5 changes: 3 additions & 2 deletions examples/Bootstrap4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
"style-loader": "latest",
"css-loader": "latest",
"sass-loader": "latest",
"extract-text-webpack-plugin": "latest",
"mini-css-extract-plugin": "latest",

"webpack": "^3",
"webpack-cli": "latest",
"webpack": "latest",
"babel-loader": "latest",
"babel-core": "latest",
"babel-polyfill": "latest",
Expand Down
17 changes: 8 additions & 9 deletions examples/Bootstrap4/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-check

const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');

module.exports = {
entry: {
Expand All @@ -14,7 +14,7 @@ module.exports = {
},

plugins: [
new ExtractTextPlugin({filename: '[name].css'})
new MiniCssExtractPlugin({filename: '[name].css'})
],

resolve: {
Expand All @@ -36,14 +36,13 @@ module.exports = {
{ test: /\.(html|css|png)$/, loader: 'file-loader', options: {name: '[path][name].[ext]'} },
{
// FIXME Don't know how to make source maps work
// See SourceMap not working with Webpack 4.8.1 https://github.com/webpack-contrib/mini-css-extract-plugin/issues/141
test: /\.scss$/,
use: ExtractTextPlugin.extract({
fallback: 'style-loader',
use: [
{ loader: 'css-loader', options: { sourceMap: true } },
{ loader: 'sass-loader', options: { sourceMap: true } }
]
})
use: [
MiniCssExtractPlugin.loader,
{ loader: 'css-loader', options: {sourceMap: true} },
{ loader: 'sass-loader', options: {sourceMap: true} }
]
}
]
}
Expand Down
5 changes: 3 additions & 2 deletions examples/ClubMembers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@
"ts-node": "latest",
"@types/node": "latest",

"webpack": "^3",
"webpack-cli": "latest",
"webpack": "latest",
"@types/webpack": "latest",
"ts-loader": "^3",
"ts-loader": "latest",
"file-loader": "latest",
"source-map-loader": "latest",

Expand Down
5 changes: 3 additions & 2 deletions examples/HTML5Constraints/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
"ts-node": "latest",
"@types/node": "latest",

"webpack": "^3",
"webpack-cli": "latest",
"webpack": "latest",
"@types/webpack": "latest",
"ts-loader": "^3",
"ts-loader": "latest",
"file-loader": "latest",
"source-map-loader": "latest",

Expand Down
5 changes: 3 additions & 2 deletions examples/MaterialUI/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@
"ts-node": "latest",
"@types/node": "latest",

"webpack": "^3",
"webpack-cli": "latest",
"webpack": "latest",
"@types/webpack": "latest",
"ts-loader": "^3",
"ts-loader": "latest",
"file-loader": "latest",
"source-map-loader": "latest",

Expand Down
5 changes: 3 additions & 2 deletions examples/NoFramework/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
"ts-node": "latest",
"@types/node": "latest",

"webpack": "^3",
"webpack-cli": "latest",
"webpack": "latest",
"@types/webpack": "latest",
"ts-loader": "^3",
"ts-loader": "latest",
"file-loader": "latest",
"source-map-loader": "latest",

Expand Down
5 changes: 3 additions & 2 deletions examples/Password/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
"ts-node": "latest",
"@types/node": "latest",

"webpack": "^3",
"webpack-cli": "latest",
"webpack": "latest",
"@types/webpack": "latest",
"ts-loader": "^3",
"ts-loader": "latest",
"file-loader": "latest",
"source-map-loader": "latest",

Expand Down
5 changes: 3 additions & 2 deletions examples/PasswordNoState/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@
"ts-node": "latest",
"@types/node": "latest",

"webpack": "^3",
"webpack-cli": "latest",
"webpack": "latest",
"@types/webpack": "latest",
"ts-loader": "^3",
"ts-loader": "latest",
"file-loader": "latest",
"source-map-loader": "latest",

Expand Down
5 changes: 3 additions & 2 deletions examples/ServerSideRendering/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@
"express": "latest",
"@types/express": "latest",

"webpack": "^3",
"webpack-cli": "latest",
"webpack": "latest",
"@types/webpack": "latest",
"webpack-node-externals": "latest",
"@types/webpack-node-externals": "latest",
"ts-loader": "^3",
"ts-loader": "latest",
"file-loader": "latest",
"source-map-loader": "latest",

Expand Down
5 changes: 3 additions & 2 deletions examples/SignUp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@
"ts-node": "latest",
"@types/node": "latest",

"webpack": "^3",
"webpack-cli": "latest",
"webpack": "latest",
"@types/webpack": "latest",
"ts-loader": "^3",
"ts-loader": "latest",
"file-loader": "latest",
"source-map-loader": "latest",

Expand Down
5 changes: 3 additions & 2 deletions examples/WizardForm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@
"ts-node": "latest",
"@types/node": "latest",

"webpack": "^3",
"webpack-cli": "latest",
"webpack": "latest",
"@types/webpack": "latest",
"ts-loader": "^3",
"ts-loader": "latest",
"file-loader": "latest",
"source-map-loader": "latest",

Expand Down
Loading

0 comments on commit 57a19ac

Please sign in to comment.