Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit c8a1b80

Browse files
authored
Merge pull request #341 from mdgbayly/master
Possible fixes for umd build
2 parents 926c333 + 4b88dcf commit c8a1b80

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"test:watch": "NODE_ENV=test mocha -w --require babel-register --require ./test/spec-setup.js",
1414
"build": "npm run build:umd && npm run build:lib",
1515
"build:watch": "babel -w src --out-dir lib",
16-
"build:umd": "webpack -p src/index.js dist/index.js --config webpack.config.prod.js",
16+
"build:umd": "webpack -p src/index.js umd/ReactReduxForm.min.js --config webpack.config.prod.js",
1717
"build:lib": "babel src --out-dir lib",
1818
"analyze": "webpack src/index.js dist/index.js --config webpack.config.prod.js --json > stats.json",
1919
"preversion": "npm run test && npm run lint",

webpack.config.base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module.exports = {
4646
],
4747
},
4848
output: {
49-
library: 'react-redux-form',
49+
library: 'ReactReduxForm',
5050
libraryTarget: 'umd',
5151
},
5252
resolve: {

webpack.config.prod.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ const config = Object.create(baseConfig);
1010

1111
Object.assign(config, {
1212
entry: path.join(__dirname, 'src/index.js'),
13-
14-
output: {
15-
path: path.resolve('./dist/'),
16-
// publicPath: path.resolve('./build'),
17-
filename: "build.js",
18-
},
1913
});
2014

2115
config.plugins = config.plugins.concat([

0 commit comments

Comments
 (0)