添加curve demo ,更新首页皮肤

This commit is contained in:
rucky
2022-02-11 15:55:10 +08:00
parent f48e036827
commit 48c64b858b
8 changed files with 1823 additions and 135 deletions

View File

@@ -99,24 +99,23 @@ module.exports = {
})]
// 配置 copy plguins
let copyImg = [
let copyRes = [
new CopyWebpackPlugin([
// This is required so that yoha can load model files etc.
{ from: 'node_modules/@handtracking.io/yoha/', to: 'yoha/' },
// Required for github pages...
{ from: 'node_modules/coi-serviceworker/coi-serviceworker.min.js', to: './' },
// Required for github pages...
{ from: 'src/assets/font/fzcy.json', to: './static/font/' },
])
]
config.plugins = [...config.plugins,
...pluginsDev,
...tinyimg,
...copyImg,
config.plugins = [
...config.plugins,
...pluginsDev,
...tinyimg,
...copyRes,
];
config.module.rules.push(
@@ -141,7 +140,7 @@ module.exports = {
{
loader: 'file-loader', // 解决wasm加载问题
options: {
name: './static/wasm/[name].[ext]'
name: './static/wasm/[name][hash:7].[ext]'
}
}
]
@@ -151,18 +150,20 @@ module.exports = {
test: /\.(stl|obj|fbx|mtl|glb|gltf)?$/,
use: [
{
loader: 'file-loader', // 解决glsl 加载问题
loader: 'file-loader',
options: {
name: './static/model/[name].[ext]'
name: './static/model/[name][hash:7].[ext]'
}
}
]
}, {
test: /\.glsl$/,
use: [{
loader: 'webpack-glsl-loader', // 解决glsl 加载问题
}]
})
},
{
test: /\.glsl$/,
use: [{
loader: 'webpack-glsl-loader', // 解决glsl 加载问题
}]
}
)
// 配置gzip压缩
if (process.env.NODE_ENV === 'production') {