Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 34 additions & 28 deletions content/en/utoopack/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,23 @@ const { build } = require('@utoo/pack');

async function runBuild() {
await build({
mode: "production",
entry: [
{
import: "./src/index.ts",
html: { template: "./index.html" }
}
],
output: {
path: "./dist",
filename: "[name].[contenthash:8].js",
chunkFilename: "[name].[contenthash:8].js",
clean: true
},
sourceMaps: true
config: {
entry: [
Comment thread
fireairforce marked this conversation as resolved.
Resolved
{
import: "./src/index.ts",
html: {
template: "./index.html"
}
}
],
output: {
path: "./dist",
filename: "[name].[contenthash:8].js",
chunkFilename: "[name].[contenthash:8].js",
clean: true
},
sourceMaps: true
}
});
}

Expand All @@ -58,20 +61,23 @@ const { dev } = require('@utoo/pack');

async function startDev() {
const server = await dev({
mode: "development",
entry: [
{
import: "./src/index.ts",
html: { template: "./index.html" }
}
],
output: {
path: "./dist",
filename: "[name].[contenthash:8].js",
chunkFilename: "[name].[contenthash:8].js",
clean: true
},
sourceMaps: true
config: {
entry: [
Comment thread
fireairforce marked this conversation as resolved.
Resolved
{
import: "./src/index.ts",
html: {
template: "./index.html"
}
}
],
output: {
path: "./dist",
filename: "[name].[contenthash:8].js",
chunkFilename: "[name].[contenthash:8].js",
clean: true
},
sourceMaps: true
}
});
}

Expand Down
62 changes: 34 additions & 28 deletions content/zh/utoopack/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,23 @@ const { build } = require('@utoo/pack');

async function runBuild() {
await build({
mode: "production",
entry: [
{
import: "./src/index.ts",
html: { template: "./index.html" }
}
],
output: {
path: "./dist",
filename: "[name].[contenthash:8].js",
chunkFilename: "[name].[contenthash:8].js",
clean: true
},
sourceMaps: true
config: {
entry: [
Comment thread
fireairforce marked this conversation as resolved.
Resolved
{
import: "./src/index.ts",
html: {
template: "./index.html"
}
}
],
output: {
path: "./dist",
filename: "[name].[contenthash:8].js",
chunkFilename: "[name].[contenthash:8].js",
clean: true
},
sourceMaps: true
}
});
}

Expand All @@ -58,20 +61,23 @@ const { dev } = require('@utoo/pack');

async function startDev() {
const server = await dev({
mode: "development",
entry: [
{
import: "./src/index.ts",
html: { template: "./index.html" }
}
],
output: {
path: "./dist",
filename: "[name].[contenthash:8].js",
chunkFilename: "[name].[contenthash:8].js",
clean: true
},
sourceMaps: true
config: {
entry: [
Comment thread
fireairforce marked this conversation as resolved.
Resolved
{
import: "./src/index.ts",
html: {
template: "./index.html"
}
}
],
output: {
path: "./dist",
filename: "[name].[contenthash:8].js",
chunkFilename: "[name].[contenthash:8].js",
clean: true
},
sourceMaps: true
}
});
}

Expand Down