From d393b9e7f90296c335745399351a41a777aeedfa Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Fri, 25 Oct 2024 05:27:05 +0100 Subject: [PATCH] [examples] Fix webpack CLI instructions (#277) --- examples/pigment-css-nextjs-ts/package.json | 1 - examples/pigment-css-remix-ts/package.json | 1 - examples/pigment-css-vite-ts/package.json | 1 - examples/pigment-css-webpack-ts/README.md | 12 ++++++------ examples/pigment-css-webpack-ts/package.json | 2 +- 5 files changed, 7 insertions(+), 10 deletions(-) diff --git a/examples/pigment-css-nextjs-ts/package.json b/examples/pigment-css-nextjs-ts/package.json index b2579629..d8360fae 100644 --- a/examples/pigment-css-nextjs-ts/package.json +++ b/examples/pigment-css-nextjs-ts/package.json @@ -1,6 +1,5 @@ { "name": "pigment-css-nextjs-ts", - "version": "5.0.0", "private": true, "scripts": { "dev": "next dev", diff --git a/examples/pigment-css-remix-ts/package.json b/examples/pigment-css-remix-ts/package.json index fed2f6e7..7c0aed05 100644 --- a/examples/pigment-css-remix-ts/package.json +++ b/examples/pigment-css-remix-ts/package.json @@ -1,7 +1,6 @@ { "name": "pigment-css-remix-ts", "private": true, - "sideEffects": false, "type": "module", "scripts": { "build": "remix vite:build", diff --git a/examples/pigment-css-vite-ts/package.json b/examples/pigment-css-vite-ts/package.json index 8b61ac52..8caae366 100644 --- a/examples/pigment-css-vite-ts/package.json +++ b/examples/pigment-css-vite-ts/package.json @@ -1,7 +1,6 @@ { "name": "pigment-css-vite-ts", "private": true, - "version": "5.0.0", "type": "module", "scripts": { "dev": "vite", diff --git a/examples/pigment-css-webpack-ts/README.md b/examples/pigment-css-webpack-ts/README.md index 7a51a78b..c53ccd3d 100644 --- a/examples/pigment-css-webpack-ts/README.md +++ b/examples/pigment-css-webpack-ts/README.md @@ -1,4 +1,4 @@ -# Pigment CSS - Vite with TypeScript example project +# Pigment CSS - webpack with TypeScript example project ## How to use @@ -7,8 +7,8 @@ Download the example [or clone the repo](https://github.com/mui/pigment-css): ```bash -curl https://codeload.github.com/mui/pigment-css/tar.gz/master | tar -xz --strip=2 pigment-css-master/examples/pigment-css-vite-ts -cd pigment-css-vite-ts +curl https://codeload.github.com/mui/pigment-css/tar.gz/master | tar -xz --strip=2 pigment-css-master/examples/pigment-css-webpack-ts +cd pigment-css-webpack-ts ``` Install it and run: @@ -22,13 +22,13 @@ or: -[![Edit on StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/mui/pigment-css/tree/master/examples/pigment-css-vite-ts) +[![Edit on StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/mui/pigment-css/tree/master/examples/pigment-css-webpack-ts) -[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/p/sandbox/github/mui/pigment-css/tree/master/examples/pigment-css-vite-ts) +[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/p/sandbox/github/mui/pigment-css/tree/master/examples/pigment-css-webpack-ts) ## Learn more To learn more about this example: - [Pigment CSS documentation](https://github.com/mui/pigment-css/blob/master/README.md) - learn more about Pigment CSS features and APIs. -- [Vite documentation](https://vite.dev/guide/) - learn about Vite features and APIs. +- [webpack documentation](https://webpack.js.org/) - learn about webpack features and APIs. diff --git a/examples/pigment-css-webpack-ts/package.json b/examples/pigment-css-webpack-ts/package.json index 70113288..5cd5b2d3 100644 --- a/examples/pigment-css-webpack-ts/package.json +++ b/examples/pigment-css-webpack-ts/package.json @@ -1,5 +1,5 @@ { - "name": "@app/wp-app", + "name": "pigment-css-webpack-ts", "private": true, "type": "module", "scripts": {