create-rspack 0.0.19 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/README.md +16 -0
- package/package.json +3 -3
- package/template-react/rspack.config.js +9 -10
package/CHANGELOG.md
CHANGED
package/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<picture>
|
|
2
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://lf3-static.bytednsdoc.com/obj/eden-cn/rjhwzy/ljhwZthlaukjlkulzlp/rspack-banner-1610-dark.png">
|
|
3
|
+
<img alt="Rspack Banner" src="https://lf3-static.bytednsdoc.com/obj/eden-cn/rjhwzy/ljhwZthlaukjlkulzlp/rspack-banner-1610.png">
|
|
4
|
+
</picture>
|
|
5
|
+
|
|
6
|
+
# create-rspack
|
|
7
|
+
|
|
8
|
+
Create a new rspack project.
|
|
9
|
+
|
|
10
|
+
## Documentation
|
|
11
|
+
|
|
12
|
+
See [https://rspack.org](https://rspack.org) for details.
|
|
13
|
+
|
|
14
|
+
## License
|
|
15
|
+
|
|
16
|
+
Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-rspack",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"license": "Create a new rspack project",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"create-rspack": "index.js"
|
|
8
8
|
},
|
|
9
9
|
"homepage": "https://rspack.org",
|
|
10
|
-
"bugs": "https://github.com/
|
|
11
|
-
"repository": "
|
|
10
|
+
"bugs": "https://github.com/web-infra-dev/rspack/issues",
|
|
11
|
+
"repository": "web-infra-dev/rspack",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"yargs": "17.6.2",
|
|
14
14
|
"prompts": "2.4.2"
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
const env = process.env.NODE_ENV || "development";
|
|
2
|
-
const isDev = env === "development";
|
|
3
1
|
/**
|
|
4
2
|
* @type {import('@rspack/cli').Configuration}
|
|
5
3
|
*/
|
|
@@ -13,13 +11,14 @@ module.exports = {
|
|
|
13
11
|
{
|
|
14
12
|
template: "./index.html"
|
|
15
13
|
}
|
|
16
|
-
]
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
module: {
|
|
17
|
+
rules: [
|
|
18
|
+
{
|
|
19
|
+
test: /\.svg$/,
|
|
20
|
+
type: "asset"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
24
23
|
}
|
|
25
24
|
};
|