Skip to content

Commit e76b963

Browse files
authored
Merge pull request #101 from manudous/fix/#100-remove-localIdentHashPrefix
remove localIdentHashPrefix
2 parents fc12506 + 6018eb3 commit e76b963

File tree

8 files changed

+0
-12
lines changed

8 files changed

+0
-12
lines changed

03-bundling/01-webpack/12-css-modules/README.md

-2
Original file line numberDiff line numberDiff line change
@@ -384,14 +384,12 @@ npm start
384384
exportLocalsConvention: "camelCase",
385385
+ localIdentName: '[path][name]__[local]--[hash:base64:5]',
386386
+ localIdentContext: path.resolve(__dirname, 'src'),
387-
+ localIdentHashPrefix: 'my-custom-hash', // Optional
388387
},
389388
},
390389
},
391390
```
392391
> [localIdentName](https://webpack.js.org/loaders/css-loader/#localidentname)
393392
> [localIdentContext](https://webpack.js.org/loaders/css-loader/#localidentcontext)
394-
> [localIdentHashPrefix](https://webpack.js.org/loaders/css-loader/#localidenthashprefix)
395393
396394
- If we take a look to the browser console, we can see how webpack transform css class names, adding prefixes (inspect element).
397395

03-bundling/01-webpack/12-css-modules/webpack.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ module.exports = {
3838
exportLocalsConvention: "camelCase",
3939
localIdentName: '[path][name]__[local]--[hash:base64:5]',
4040
localIdentContext: path.resolve(__dirname, 'src'),
41-
localIdentHashPrefix: 'my-custom-hash',
4241
},
4342
},
4443
},

03-bundling/01-webpack/13-typescript/webpack.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ module.exports = {
3838
exportLocalsConvention: "camelCase",
3939
localIdentName: "[path][name]__[local]--[hash:base64:5]",
4040
localIdentContext: path.resolve(__dirname, "src"),
41-
localIdentHashPrefix: "my-custom-hash",
4241
},
4342
},
4443
},

03-bundling/01-webpack/14-production-config/README.md

-4
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ module: {
156156
- exportLocalsConvention: "camelCase",
157157
- localIdentName: "[path][name]__[local]--[hash:base64:5]",
158158
- localIdentContext: path.resolve(__dirname, "src"),
159-
- localIdentHashPrefix: "my-custom-hash",
160159
- },
161160
- },
162161
- },
@@ -227,7 +226,6 @@ module.exports = merge(common, {
227226
+ exportLocalsConvention: "camelCase",
228227
+ localIdentName: "[path][name]__[local]--[hash:base64:5]",
229228
+ localIdentContext: path.resolve(__dirname, "src"),
230-
+ localIdentHashPrefix: "my-custom-hash",
231229
+ },
232230
+ },
233231
+ },
@@ -274,7 +272,6 @@ module.exports = merge(common, {
274272
+ exportLocalsConvention: "camelCase",
275273
+ localIdentName: "[path][name]__[local]--[hash:base64:5]",
276274
+ localIdentContext: path.resolve(__dirname, "src"),
277-
+ localIdentHashPrefix: "my-custom-hash",
278275
+ },
279276
+ },
280277
+ },
@@ -344,7 +341,6 @@ _webpack.dev.js_
344341
- localIdentName: "[path][name]__[local]--[hash:base64:5]",
345342
+ localIdentName: "[path][name]__[local]",
346343
localIdentContext: path.resolve(__dirname, "src"),
347-
- localIdentHashPrefix: "my-custom-hash",
348344
},
349345
...
350346
```

03-bundling/01-webpack/14-production-config/webpack.prod.js

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ module.exports = merge(common, {
2424
exportLocalsConvention: "camelCase",
2525
localIdentName: "[path][name]__[local]--[hash:base64:5]",
2626
localIdentContext: path.resolve(__dirname, "src"),
27-
localIdentHashPrefix: "my-custom-hash",
2827
},
2928
},
3029
},

03-bundling/01-webpack/15-dot-env/webpack.prod.js

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ module.exports = merge(common, {
2424
exportLocalsConvention: "camelCase",
2525
localIdentName: "[path][name]__[local]--[hash:base64:5]",
2626
localIdentContext: path.resolve(__dirname, "src"),
27-
localIdentHashPrefix: "my-custom-hash",
2827
},
2928
},
3029
},

03-bundling/01-webpack/16-bundle-analyzer/webpack.prod.js

-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ module.exports = merge(common, {
4343
exportLocalsConvention: "camelCase",
4444
localIdentName: "[path][name]__[local]--[hash:base64:5]",
4545
localIdentContext: path.resolve(__dirname, "src"),
46-
localIdentHashPrefix: "my-custom-hash",
4746
},
4847
},
4948
},

03-bundling/01-webpack/17-proxy/webpack.common.js

-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ module.exports = {
4343
exportLocalsConvention: "camelCase",
4444
localIdentName: "[path][name]__[local]--[hash:base64:5]",
4545
localIdentContext: path.resolve(__dirname, "src"),
46-
localIdentHashPrefix: "my-custom-hash",
4746
},
4847
},
4948
},

0 commit comments

Comments
 (0)