Skip to content

Commit 9a2a5db

Browse files
committed
A few small corrections
1 parent 0625f65 commit 9a2a5db

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ package. If you are to use configurations, you must also install peer
1414
dependencies:
1515
```
1616
$ npm install -g install-peerdeps
17-
$ install-peerdeps topcoder-react-utils
17+
$ install-peerdeps -d topcoder-react-utils
1818
```
1919

2020
Peer dependencies will be also stored into `package.json` of your project, thus

config/babel/node-ssr.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ switch (process.env.BABEL_ENV) {
2929
case 'development':
3030
envPresetsOps.modules = 'commonjs';
3131
_.pull(config.plugins, 'react-hot-loader/babel');
32-
cssModulesTransformPluginOps.generateScopedName = '[path][name]___[local]';
32+
cssModulesTransformPluginOps.generateScopedName = '[path][name]___[local]___[hash:base64:6]';
3333
break;
3434
case 'production':
3535
cssModulesTransformPluginOps.generateScopedName = '[hash:base64:6]';
3636
break;
3737
case 'test':
38-
cssModulesTransformPluginOps.generateScopedName = '[path][name]___[local]';
38+
cssModulesTransformPluginOps.generateScopedName = '[path][name]___[local]___[hash:base64:6]';
3939
break;
4040
default:
4141
}

config/babel/webpack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const config = {
3333
switch (process.env.BABEL_ENV) {
3434
case 'development':
3535
envPresetOps.modules = false;
36-
reactCssModulesPluginOps.generateScopedName = '[path][name]___[local]';
36+
reactCssModulesPluginOps.generateScopedName = '[path][name]___[local]___[hash:base64:6]';
3737
config.plugins.push('react-hot-loader/babel');
3838
break;
3939
case 'production':

config/webpack/default.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ const webpack = require('webpack');
1212

1313
/**
1414
* Creates a new Webpack config object.
15-
* @param {String} context Base URL for resolution of relative config paths.
16-
* @param {String} publicPath Base URL for the output of the build assets.
1715
* @param {Object|String|String[]} entry Entry points. If an object is passed in
1816
* the "polyfills" entry point will be extended or appended to include some
1917
* polyfills we consider obligatory. If a string or an array is passed in,
2018
* it will be turned into "main" entry point, and the "polyfills" entry point
2119
* will be added to it.
20+
* @param {String} context Base URL for resolution of relative config paths.
21+
* @param {String} publicPath Base URL for the output of the build assets.
2222
*/
23-
module.exports = function newConfig(context, publicPath, entry) {
23+
module.exports = function newConfig(entry, context, publicPath) {
2424
/* Writes UTC timestamp of the build time into .build-timestamp file. */
2525
const buildTimestamp = moment().toISOString();
2626
fs.writeFileSync(path.resolve(context, '.build-timestamp'), buildTimestamp);

0 commit comments

Comments
 (0)