Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
xudafeng committed Nov 2, 2023
1 parent 60e8d37 commit b59dbeb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
4 changes: 2 additions & 2 deletions antd-sample/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class App extends React.Component {
}
return (
<Layout>
<Header className="header"></Header>
<Header className="header" />
<Content style={{ padding: 30 }}>
<Select
className="test-list"
Expand All @@ -113,7 +113,7 @@ class App extends React.Component {
<Table columns={columns} dataSource={this.state.dataList} />
</Spin>
</Content>
<Footer/>
<Footer />
</Layout>
);
}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"url": "https://github.com/app-bootstrap/web-app-bootstrap.git"
},
"scripts": {
"dev": "cross-env NODE_ENV=development webpack serve",
"dev": "webpack serve",
"dev:test": "cross-env NODE_ENV=test npm run dev",
"lint": "eslint --fix . --ext .vue,.jsx,.js && stylelint --fix assets/**/*.less -s less",
"build": "cross-env NODE_ENV=production webpack",
Expand Down Expand Up @@ -103,7 +103,7 @@
"vue-loader": "^15.2.1",
"vue-template-compiler": "^2.5.13",
"vuex": "^3.0.1",
"webpack": "^5.69.1",
"webpack": "5",
"webpack-cli": "^4.9.0",
"webpack-dev-server": "^4.7.4",
"whatwg-fetch": "^2.0.4",
Expand Down
16 changes: 14 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ const VueLoaderPlugin = require('vue-loader/lib/plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const datahubMiddleware = require('datahub-proxy-middleware');

const {
NODE_ENV,
} = process.env;

const isProd = NODE_ENV === 'production';

const datahubConfig = {
port: 5678,
hostname: '127.0.0.1',
Expand All @@ -26,6 +32,7 @@ const defaultDatahub = new DataHub({
});

const config = {
mode: isProd ? 'production' : 'development',
entry: {
vuex: path.resolve('vuex'),
flux: path.resolve('flux'),
Expand All @@ -40,7 +47,7 @@ const config = {
},
output: {
path: path.join(__dirname, 'dist'),
publicPath: 'dist',
publicPath: '/dist',
filename: '[name].js'
},
module: {
Expand Down Expand Up @@ -145,7 +152,12 @@ const config = {
]
},
resolve: {
extensions: ['.ts', '.js', '.vue', '.json'],
extensions: [
'.ts', '.tsx',
'.js', '.jsx',
'.vue',
'.json',
],
alias: {
'vue$': 'vue/dist/vue.esm.js'
}
Expand Down

0 comments on commit b59dbeb

Please sign in to comment.