Skip to content

Commit

Permalink
fix: easywebpck to @easy-team/easywebpack
Browse files Browse the repository at this point in the history
  • Loading branch information
sky committed Aug 3, 2019
1 parent cdc34b1 commit 7cee948
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 11 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@

React client render and server side render build solution for Webpack

- @easy-team/easywebpack-react ^4.x.x > Webpack 4.x.x + Babel 7
- easywebpack-react ^4.x.x > Webpack 4.x.x + Babel 6
- easywebpack-react ^3.x.x > Webpack 3.x.x + Babel 6
- @easy-team/easywebpack-react ^4.0.0 > Webpack ^4.0.0 + Babel 7
- easywebpack-react ^4.0.0 > Webpack ^4.0.0 + Babel 6
- easywebpack-react ^3.0.0 > Webpack ^3.0.0 + Babel 6

## Featues

Expand Down Expand Up @@ -70,7 +70,7 @@ $ npm start
### Write Webpack Config `webpack.config.js`

```js
const easywebpack = require('easywebpack-react');
const easywebpack = require('@easy-team/easywebpack-react');
const webpack = easywebpack.webpack;
const merge = easywebpack.merge;
const webpackConfig = easywebpack.getWebpackConfig({
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
const EasyWebpack = require('easywebpack');
const EasyWebpack = require('@easy-team/easywebpack');
exports.EasyWebpack = EasyWebpack;
Object.assign(exports, EasyWebpack);
exports.WebpackClientBuilder = require('./lib/client');
Expand Down
5 changes: 4 additions & 1 deletion lib/client.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
'use strict';
const EasyWebpack = require('easywebpack');
const EasyWebpack = require('@easy-team/easywebpack');
const WebpackReactBaseBuilder = require('./base');
class WebpackClientBuilder extends WebpackReactBaseBuilder(EasyWebpack.WebpackClientBuilder) {
constructor(config = {}) {
super(config);
if (this.dev) {
this.setAlias('react-dom', '@hot-loader/react-dom', false)
}
this.normalizeExtract(config);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/server.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
const EasyWebpack = require('easywebpack');
const EasyWebpack = require('@easy-team/easywebpack');
const WebpackReactBaseBuilder = require('./base');
class WebpackServerBuilder extends WebpackReactBaseBuilder(EasyWebpack.WebpackServerBuilder){
constructor(config) {
Expand Down
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
{
"name": "@easy-team/easywebpack-react",
"version": "4.0.0",
"version": "4.0.1",
"description": "React client render and server side render build solution for Webpack",
"keywords": [
"webpack",
"easywebpack",
"react"
],
"dependencies": {
"@easy-team/easywebpack": "^4.0.0",
"@babel/preset-react": "^7.0.0",
"@easy-team/easywebpack": "^4.0.0",
"@hot-loader/react-dom": "^16.8.6",
"babel-plugin-import": "^1.12.0",
"eslint-plugin-react": "^7.1.0",
"react-hot-loader": "^4.3.5",
"isomorphic-style-loader": "^5.0.0",
"react-entry-template-loader": "^1.0.0",
"isomorphic-style-loader": "^5.0.0"
"react-hot-loader": "^4.3.5"
},
"devDependencies": {
"chai": "^4.0.0",
Expand Down

0 comments on commit 7cee948

Please sign in to comment.