mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: resource package
This commit is contained in:
1 parent
c8a0d48a41
commit
b960bc9ff9
2 files changed
+15
-5
No files matched your search
@@ -88,7 +88,7 @@ export default function (env = {}) {
|
|||||||
hashDigest: 'hex',
|
hashDigest: 'hex',
|
||||||
hashDigestLength: 10,
|
hashDigestLength: 10,
|
||||||
filename: '[name].js?[hash]',
|
filename: '[name].js?[hash]',
|
||||||
chunkFilename: '[name].chunk.js?[hash]',
|
chunkFilename: '[name].[chunkhash].chunk.js',
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
modules: [root('node_modules'), root('../../node_modules')],
|
modules: [root('node_modules'), root('../../node_modules')],
|
||||||
@@ -139,12 +139,22 @@ export default function (env = {}) {
|
|||||||
monaco: {
|
monaco: {
|
||||||
test: /[\\/]monaco-editor[\\/]/,
|
test: /[\\/]monaco-editor[\\/]/,
|
||||||
priority: 9,
|
priority: 9,
|
||||||
name: `monaco-${require('monaco-editor/package.json').version}`,
|
name: 'monaco',
|
||||||
},
|
},
|
||||||
vditor: {
|
vditor: {
|
||||||
test: /[\\/]vditor[\\/]/,
|
test: /[\\/]vditor[\\/]/,
|
||||||
priority: 8,
|
priority: 8,
|
||||||
name: `vditor-${require('vditor/package.json').version}`,
|
name: 'vditor',
|
||||||
|
},
|
||||||
|
echarts: {
|
||||||
|
test: /[\\/]echarts[\\/]/,
|
||||||
|
priority: 7,
|
||||||
|
name: 'echarts',
|
||||||
|
},
|
||||||
|
graphql: {
|
||||||
|
test: /[\\/](graphiql|codemirror)[\\/]/,
|
||||||
|
priority: 6,
|
||||||
|
name: 'gql-cm',
|
||||||
},
|
},
|
||||||
vendors: {
|
vendors: {
|
||||||
test: /[\\/]node_modules[\\/].+\.([jt]sx?|json|yaml)$/,
|
test: /[\\/]node_modules[\\/].+\.([jt]sx?|json|yaml)$/,
|
||||||
@@ -214,7 +224,7 @@ export default function (env = {}) {
|
|||||||
new webpack.LoaderOptionsPlugin({
|
new webpack.LoaderOptionsPlugin({
|
||||||
options: {
|
options: {
|
||||||
context: root(),
|
context: root(),
|
||||||
customInterpolateName: (url) => beautifyOutputUrl(url),
|
customInterpolateName: beautifyOutputUrl,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
new MonacoWebpackPlugin({
|
new MonacoWebpackPlugin({
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.19.0",
|
"version": "4.19.1",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "hydro.js",
|
"main": "hydro.js",
|
||||||
|
|||||||
Reference in new issue
Block a user