Skip to content

Commit 849107f

Browse files
authored
feat: the packaged product does not add or remove variables (#201)
1 parent a059fef commit 849107f

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

template/tinyvue/webpack.config.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -114,16 +114,6 @@ module.exports = {
114114
},
115115
}),
116116
new DefinePlugin({
117-
'process.env': JSON.stringify({ ...process.env }),
118-
'import.meta.env': '""',
119-
'import.meta.env.VITE_CONTEXT': '"/vue-pro/"',
120-
'import.meta.env.VITE_BASE_API': '"/api"',
121-
'import.meta.env.VITE_SERVER_HOST': '"http://127.0.0.1:3000"',
122-
'import.meta.env.VITE_MOCK_HOST': '"http://127.0.0.1:8848"',
123-
'import.meta.env.VITE_USE_MOCK': 'false',
124-
'import.meta.env.VITE_MOCK_IGNORE':
125-
'"/api/user/userInfo,/api/user/login,/api/user/register,/api/employee/getEmployee"',
126-
'import.meta.env.VITE_MOCK_SERVER_HOST': '"/mock"',
127117
'BUILD_TOOLS': "'WEBPACK'",
128118
}),
129119
],

0 commit comments

Comments
 (0)