Skip to content

Commit 121ac7c

Browse files
committed
ref: #187 update 09, 10 and translations
1 parent 84ba4e5 commit 121ac7c

5 files changed

Lines changed: 54 additions & 45 deletions

File tree

hooks/09_Sidebar/webpack.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ module.exports = {
3434
babelCore: "@babel/core", // needed for Babel v7
3535
},
3636
},
37+
{
38+
test: /\.css$/,
39+
include: /node_modules/,
40+
use: [MiniCssExtractPlugin.loader, "css-loader"]
41+
},
3742
{
3843
test: /\.css$/,
3944
exclude: /node_modules/,

hooks/10_TableMock/package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,28 @@
1515
"author": "Braulio Diez Botella",
1616
"license": "MIT",
1717
"devDependencies": {
18-
"@babel/cli": "^7.2.3",
19-
"@babel/core": "^7.2.2",
20-
"@babel/polyfill": "^7.2.5",
21-
"@babel/preset-env": "^7.3.1",
22-
"@types/node": "^11.9.4",
23-
"@types/react": "^16.8.3",
24-
"@types/react-dom": "^16.8.1",
18+
"@babel/cli": "^7.10.5",
19+
"@babel/core": "^7.10.5",
20+
"@babel/polyfill": "^7.10.4",
21+
"@babel/preset-env": "^7.10.4",
22+
"@types/node": "^14.0.24",
23+
"@types/react": "^16.9.43",
24+
"@types/react-dom": "^16.9.8",
2525
"awesome-typescript-loader": "^5.2.1",
26-
"babel-loader": "^8.0.5",
27-
"css-loader": "^2.1.0",
28-
"file-loader": "^3.0.1",
29-
"html-webpack-plugin": "^3.2.0",
30-
"mini-css-extract-plugin": "^0.5.0",
31-
"style-loader": "^0.23.1",
32-
"typescript": "^3.3.3",
33-
"url-loader": "^1.1.2",
34-
"webpack": "^4.29.3",
35-
"webpack-cli": "^3.2.3",
36-
"webpack-dev-server": "^3.1.14"
26+
"babel-loader": "^8.1.0",
27+
"css-loader": "^3.6.0",
28+
"file-loader": "^6.0.0",
29+
"html-webpack-plugin": "^4.3.0",
30+
"mini-css-extract-plugin": "^0.9.0",
31+
"style-loader": "^1.2.1",
32+
"typescript": "^3.9.7",
33+
"url-loader": "^4.1.0",
34+
"webpack": "^4.43.0",
35+
"webpack-cli": "^3.3.12",
36+
"webpack-dev-server": "^3.11.0"
3737
},
3838
"dependencies": {
39-
"react": "^16.8.2",
40-
"react-dom": "^16.8.2"
39+
"react": "^16.13.1",
40+
"react-dom": "^16.13.1"
4141
}
4242
}
Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
var HtmlWebpackPlugin = require("html-webpack-plugin");
2-
var MiniCssExtractPlugin = require("mini-css-extract-plugin");
3-
var webpack = require("webpack");
4-
var path = require("path");
1+
const HtmlWebpackPlugin = require("html-webpack-plugin");
2+
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
3+
const webpack = require("webpack");
4+
const path = require("path");
55

6-
var basePath = __dirname;
6+
const basePath = __dirname;
77

88
module.exports = {
99
context: path.join(basePath, "src"),
1010
resolve: {
11-
extensions: [".js", ".ts", ".tsx", ".css"]
11+
extensions: [".js", ".ts", ".tsx", ".css"],
1212
},
1313
entry: ["@babel/polyfill", "./index.tsx"],
1414
output: {
1515
path: path.join(basePath, "dist"),
16-
filename: "bundle.js"
16+
filename: "bundle.js",
1717
},
1818
devtool: "source-map",
1919
devServer: {
2020
contentBase: "./dist", // Content base
2121
inline: true, // Enable watch and live reload
2222
host: "localhost",
2323
port: 8080,
24-
stats: "errors-only"
24+
stats: "errors-only",
2525
},
2626
module: {
2727
rules: [
@@ -31,8 +31,8 @@ module.exports = {
3131
loader: "awesome-typescript-loader",
3232
options: {
3333
useBabel: true,
34-
babelCore: "@babel/core" // needed for Babel v7
35-
}
34+
babelCore: "@babel/core", // needed for Babel v7
35+
},
3636
},
3737
{
3838
test: /\.css$/,
@@ -49,30 +49,31 @@ module.exports = {
4949
options: {
5050
modules: true,
5151
localIdentName: "[name]__[local]___[hash:base64:5]",
52-
camelCase: true
53-
}
54-
}
55-
]
52+
camelCase: true,
53+
},
54+
},
55+
],
5656
},
5757
{
5858
test: /\.(png|jpg|gif|svg)$/,
5959
loader: "file-loader",
6060
options: {
61-
name: "assets/img/[name].[ext]?[hash]"
62-
}
63-
}
64-
]
61+
name: "assets/img/[name].[ext]?[hash]",
62+
esModule: false,
63+
},
64+
},
65+
],
6566
},
6667
plugins: [
6768
//Generate index.html in /dist => https://github.com/ampedandwired/html-webpack-plugin
6869
new HtmlWebpackPlugin({
6970
filename: "index.html", //Name of file in ./dist/
7071
template: "index.html", //Name of template in ./src
71-
hash: true
72+
hash: true,
7273
}),
7374
new MiniCssExtractPlugin({
7475
filename: "[name].css",
75-
chunkFilename: "[id].css"
76-
})
77-
]
76+
chunkFilename: "[id].css",
77+
}),
78+
],
7879
};

readme.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,9 @@ Add a login page using Material-UI.
232232

233233
# Contributors
234234

235-
Special thanks to [Jehu Sagardoy](https://github.com/jsagardoy) for his contributions checking
236-
and getting uptodate examples.
235+
Thank you very much to the contributors for keeping the project updated in all the examples.
236+
237+
- [Jehu Sagardoy](https://github.com/jsagardoy)
237238

238239
# About Basefactor + Lemoncode
239240

readme_es.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,9 @@ Añadir página de Login usando AMaterial-UI.
229229

230230
# Colaboradores
231231

232-
Gracias, en especial a [Jehu Sagardoy](https://github.com/jsagardoy) por su colaboración, revisión y actualizaciones de los ejemplos.
232+
Muchas gracias a los colaborades por mantener el proyecto actualizado en todos los ejemplos.
233+
234+
- [Jehu Sagardoy](https://github.com/jsagardoy)
233235

234236
# Sobre Basefactor + Lemoncode
235237

0 commit comments

Comments
 (0)