mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
update auto-build script
This commit is contained in:
1 parent
19cf1a5304
commit
c389d20c51
2 files changed
+5
-2
No files matched your search
@@ -19,8 +19,7 @@ jobs:
|
||||
path: .uibuild
|
||||
- run: |
|
||||
yarn
|
||||
yarn build
|
||||
yarn pack:production
|
||||
yarn build:production
|
||||
- uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: app.js
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
/* eslint-disable import/no-extraneous-dependencies */
|
||||
const path = require('path');
|
||||
const webpack = require('webpack');
|
||||
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin');
|
||||
const { root } = require('./utils');
|
||||
@@ -20,6 +21,9 @@ const build = async (type) => {
|
||||
new FriendlyErrorsPlugin({
|
||||
clearConsole: false,
|
||||
}),
|
||||
new webpack.ProvidePlugin({
|
||||
saslprep: path.resolve(__dirname, 'node_modules/saslprep/index.js'),
|
||||
}),
|
||||
],
|
||||
};
|
||||
const compiler = webpack(config);
|
||||
|
||||
Reference in new issue
Block a user