mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-02-01 16:08:17 +00:00
暂时不再拷贝资源。
This commit is contained in:
parent
3a4440f825
commit
ed6755c0e4
@ -9,9 +9,9 @@ function glsl() {
|
||||
|
||||
var transformedCode = 'export default ' + JSON.stringify(
|
||||
code
|
||||
.replace(/[ \t]*\/\/.*\n/g, '') // remove //
|
||||
.replace(/[ \t]*\/\*[\s\S]*?\*\//g, '') // remove /* */
|
||||
.replace(/\n{2,}/g, '\n') // # \n+ to \n
|
||||
.replace(/[ \t]*\/\/.*\n/g, '') // remove //
|
||||
.replace(/[ \t]*\/\*[\s\S]*?\*\//g, '') // remove /* */
|
||||
.replace(/\n{2,}/g, '\n') // # \n+ to \n
|
||||
) + ';';
|
||||
return {
|
||||
code: transformedCode,
|
||||
@ -39,13 +39,13 @@ export default {
|
||||
runtimeHelpers: true,
|
||||
externalHelpers: false
|
||||
}),
|
||||
resolve({
|
||||
customResolveOptions: {
|
||||
moduleDirectory: 'node_modules'
|
||||
}
|
||||
}),
|
||||
copy({
|
||||
"./assets/": "./dist/assets/"
|
||||
})
|
||||
// resolve({
|
||||
// customResolveOptions: {
|
||||
// moduleDirectory: 'node_modules'
|
||||
// }
|
||||
// }),
|
||||
// copy({
|
||||
// "./assets/": "./dist/assets/"
|
||||
// })
|
||||
]
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user