create-rspack 0.0.19 → 0.0.20
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/README.md +16 -0
- package/package.json +1 -1
- package/template-react/rspack.config.js +9 -10
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/modern-js-dev/rspack/blob/main/LICENSE).
|
package/package.json
CHANGED
|
@@ -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
|
};
|