new asset api
This commit is contained in:
parent
e9bdf7f312
commit
699a7b453b
@ -20,7 +20,7 @@ await build({
|
||||
type: "production",
|
||||
source: {
|
||||
js: ["src/index.ts"],
|
||||
assets: ["src/index.html"],
|
||||
assets: [{base:"src",files:["src/index.html"]}],
|
||||
},
|
||||
destination: "./dist/prod",
|
||||
css: "sass",
|
||||
|
@ -24,7 +24,7 @@ const build = initializeDev({
|
||||
type: "development",
|
||||
source: {
|
||||
js: devEntryPoints,
|
||||
assets: ["src/index.html"],
|
||||
assets: [{base:"src",files:["src/index.html"]}],
|
||||
},
|
||||
css: "sass",
|
||||
destination: "./dist/dev",
|
||||
|
@ -22,8 +22,8 @@ const allTestFiles = getFilesInDirectory("src", /.test.tsx?$/);
|
||||
await build({
|
||||
type: "test",
|
||||
source: {
|
||||
js: allTestFiles,
|
||||
assets: ["src/index.html"],
|
||||
js: allTestFiles.files,
|
||||
assets: [{base:"src",files:["src/index.html"]}],
|
||||
},
|
||||
destination: "./dist/prod",
|
||||
css: "sass",
|
||||
|
@ -21,7 +21,7 @@ await build({
|
||||
type: "production",
|
||||
source: {
|
||||
js: ["src/index.tsx"],
|
||||
assets: ["src/index.html"],
|
||||
assets: [{base:"src",files:["src/index.html"]}],
|
||||
},
|
||||
destination: "./dist/prod",
|
||||
css: "sass",
|
||||
|
@ -24,7 +24,7 @@ const build = initializeDev({
|
||||
type: "development",
|
||||
source: {
|
||||
js: devEntryPoints,
|
||||
assets: ["src/index.html"],
|
||||
assets: [{base:"src",files:["src/index.html"]}],
|
||||
},
|
||||
destination: "./dist/dev",
|
||||
public: "/app",
|
||||
|
@ -23,8 +23,9 @@ const allTestFiles = getFilesInDirectory("src", /.test.tsx?$/);
|
||||
await build({
|
||||
type: "test",
|
||||
source: {
|
||||
js: allTestFiles,
|
||||
assets: ["src/index.html"],
|
||||
js: allTestFiles.files,
|
||||
assets: [{base:"src",files:["src/index.html"]}],
|
||||
|
||||
},
|
||||
destination: "./dist/test",
|
||||
css: "sass",
|
||||
|
@ -21,7 +21,7 @@ await build({
|
||||
type: "production",
|
||||
source: {
|
||||
js: ["src/index.tsx"],
|
||||
assets: ["src/index.html"],
|
||||
assets: [{base:"src",files:["src/index.html"]}],
|
||||
},
|
||||
destination: "./dist/prod",
|
||||
css: "postcss",
|
||||
|
@ -24,7 +24,7 @@ const build = initializeDev({
|
||||
type: "development",
|
||||
source: {
|
||||
js: devEntryPoints,
|
||||
assets: ["src/index.html"],
|
||||
assets: [{base:"src",files:["src/index.html"]}],
|
||||
},
|
||||
destination: "./dist/dev",
|
||||
css: "postcss",
|
||||
|
@ -23,8 +23,8 @@ const allTestFiles = getFilesInDirectory("./src", /.test.tsx?$/);
|
||||
await build({
|
||||
type: "test",
|
||||
source: {
|
||||
js: allTestFiles,
|
||||
assets: ["src/index.html"],
|
||||
js: allTestFiles.files,
|
||||
assets: [{base:"src",files:["src/index.html"]}],
|
||||
},
|
||||
destination: "./dist/test",
|
||||
css: "postcss",
|
||||
|
@ -21,7 +21,7 @@ await build({
|
||||
type: "production",
|
||||
source: {
|
||||
js: ["src/index.tsx"],
|
||||
assets: ["src/index.html"],
|
||||
assets: [{base:"src",files:["src/index.html"]}],
|
||||
},
|
||||
destination: "./dist/prod",
|
||||
css: "sass",
|
||||
|
@ -24,7 +24,7 @@ const build = initializeDev({
|
||||
type: "development",
|
||||
source: {
|
||||
js: devEntryPoints,
|
||||
assets: ["src/index.html"],
|
||||
assets: [{base:"src",files:["src/index.html"]}],
|
||||
},
|
||||
css: "sass",
|
||||
destination: "./dist/dev",
|
||||
|
@ -23,8 +23,8 @@ const allTestFiles = getFilesInDirectory("src", /.test.tsx?$/);
|
||||
await build({
|
||||
type: "test",
|
||||
source: {
|
||||
js: allTestFiles,
|
||||
assets: ["src/index.html"],
|
||||
js: allTestFiles.files,
|
||||
assets: [{base:"src",files:["src/index.html"]}],
|
||||
},
|
||||
destination: "./dist/test",
|
||||
css: "sass",
|
||||
|
Loading…
Reference in New Issue
Block a user