@powerlines/plugin-webpack 0.5.667 → 0.5.669
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 +34 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -74,6 +74,40 @@ A package containing a Powerlines plugin to build projects using [Webpack](https
|
|
|
74
74
|
|
|
75
75
|
<!-- END doctoc -->
|
|
76
76
|
|
|
77
|
+
## Features
|
|
78
|
+
|
|
79
|
+
- Builds Powerlines projects with [Webpack](https://webpack.js.org/)
|
|
80
|
+
- Supplies default Webpack build configuration through the `config` hook
|
|
81
|
+
- Runs the Webpack build through the `build` hook
|
|
82
|
+
- Accepts `Partial<WebpackOptions>` (for example `mode: "production"`)
|
|
83
|
+
|
|
84
|
+
## Usage
|
|
85
|
+
|
|
86
|
+
Install the plugin:
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
pnpm add @powerlines/plugin-webpack
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Register it in `powerlines.config.ts`:
|
|
93
|
+
|
|
94
|
+
```ts
|
|
95
|
+
import { plugin as webpack } from "@powerlines/plugin-webpack";
|
|
96
|
+
import { defineConfig } from "powerlines/config";
|
|
97
|
+
|
|
98
|
+
export default defineConfig({
|
|
99
|
+
plugins: [webpack()]
|
|
100
|
+
});
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Run the build with the Powerlines CLI. To pass options inline:
|
|
104
|
+
|
|
105
|
+
```ts
|
|
106
|
+
export default defineConfig({
|
|
107
|
+
plugins: [webpack({ mode: "production" })]
|
|
108
|
+
});
|
|
109
|
+
```
|
|
110
|
+
|
|
77
111
|
## Installing
|
|
78
112
|
|
|
79
113
|
Using [pnpm](http://pnpm.io):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-webpack",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.669",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Powerlines plugin to build projects using Webpack.",
|
|
6
6
|
"keywords": ["webpack", "powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -83,17 +83,17 @@
|
|
|
83
83
|
"typings": "dist/index.d.mts",
|
|
84
84
|
"files": ["dist"],
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"@powerlines/core": "^0.48.
|
|
87
|
-
"@powerlines/unplugin": "^0.0.
|
|
86
|
+
"@powerlines/core": "^0.48.136",
|
|
87
|
+
"@powerlines/unplugin": "^0.0.184",
|
|
88
88
|
"@stryke/helpers": "^0.10.56",
|
|
89
89
|
"@stryke/path": "^0.29.43",
|
|
90
90
|
"defu": "^6.1.7",
|
|
91
|
-
"powerlines": "^0.47.
|
|
91
|
+
"powerlines": "^0.47.217",
|
|
92
92
|
"unplugin": "^3.4.0"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": { "@types/node": "^25.9.9", "webpack": "^5.112.0" },
|
|
95
95
|
"peerDependencies": { "webpack": ">=5.101.0" },
|
|
96
96
|
"peerDependenciesMeta": { "webpack": { "optional": false } },
|
|
97
97
|
"publishConfig": { "access": "public" },
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "bb4e1f2b32a8bb9d20559ca7c3df3a2f30a0d14e"
|
|
99
99
|
}
|