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