Skip to content

Commit d8564fd

Browse files
committed
changed webpack
1 parent 2cf2182 commit d8564fd

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface IState {
1212

1313
class App extends React.Component<any, IState> {
1414
state: IState = {
15-
activeEditor: 'workflow',
15+
activeEditor: 'imagemap',
1616
};
1717

1818
handleChangeEditor = ({ key }) => {

webpack.common.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ module.exports = {
5858
vendor: {
5959
test: /node_modules/,
6060
chunks: 'initial',
61-
name: 'vendor',
62-
enforce: true,
61+
name: 'vendors',
6362
},
6463
},
6564
},

webpack.prod.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const baseConfig = require('./webpack.common.js');
77
module.exports = merge(baseConfig, {
88
mode: 'production',
99
entry: {
10-
vendor: ['react', 'react-dom', 'lodash', 'fabric', 'antd'],
1110
app: ['core-js/stable', path.resolve(__dirname, 'src/index.tsx')],
1211
},
1312
output: {

0 commit comments

Comments
 (0)