@pixolith/webpack-sw6-config 7.0.1 → 7.0.3
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/package.json +3 -2
- package/src/webpack.config.dev.js +38 -29
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixolith/webpack-sw6-config",
|
|
3
3
|
"public": true,
|
|
4
|
-
"version": "7.0.
|
|
4
|
+
"version": "7.0.3",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"scripts": {},
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"url": "https://github.com/pixolith/webpack-plugins/issues"
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/pixolith/webpack-plugins/tree/master/packages/webpack-hook-plugin/#readme",
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "1516c8b53e358aba730b1114b551a75290e9d013",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/core": "^7.21.3",
|
|
27
27
|
"@babel/eslint-parser": "^7.21.3",
|
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
"postcss-loader": "^7.0.2",
|
|
68
68
|
"postcss-scss": "^4.0.6",
|
|
69
69
|
"prettier": "^2.8.4",
|
|
70
|
+
"process": "^0.11.10",
|
|
70
71
|
"rimraf": "^4.4.0",
|
|
71
72
|
"sass": "^1.59.3",
|
|
72
73
|
"sass-loader": "^13.2.0",
|
|
@@ -99,7 +99,11 @@ module.exports = {
|
|
|
99
99
|
devServer: {
|
|
100
100
|
allowedHosts: 'all',
|
|
101
101
|
client: {
|
|
102
|
-
webSocketURL:
|
|
102
|
+
webSocketURL: {
|
|
103
|
+
hostname: 'node.px-staging.de',
|
|
104
|
+
protocol: 'wss',
|
|
105
|
+
port: 8080,
|
|
106
|
+
},
|
|
103
107
|
overlay: {
|
|
104
108
|
warnings: false,
|
|
105
109
|
errors: true,
|
|
@@ -112,28 +116,34 @@ module.exports = {
|
|
|
112
116
|
'Access-Control-Allow-Headers':
|
|
113
117
|
'X-Requested-With, content-type, Authorization',
|
|
114
118
|
},
|
|
115
|
-
|
|
119
|
+
server: !isProd
|
|
116
120
|
? {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
121
|
+
type: 'https',
|
|
122
|
+
options: {
|
|
123
|
+
ca: fs.readFileSync(
|
|
124
|
+
Path.join(
|
|
125
|
+
process.cwd() +
|
|
126
|
+
'/.ddev/ssl/_wildcard.px-staging.de+1-client.pem',
|
|
127
|
+
),
|
|
128
|
+
),
|
|
129
|
+
key: fs.readFileSync(
|
|
130
|
+
Path.join(
|
|
131
|
+
process.cwd() +
|
|
132
|
+
'/.ddev/ssl/_wildcard.px-staging.de+1-key.pem',
|
|
133
|
+
),
|
|
134
|
+
),
|
|
135
|
+
cert: fs.readFileSync(
|
|
136
|
+
Path.join(
|
|
137
|
+
process.cwd() +
|
|
138
|
+
'/.ddev/ssl/_wildcard.px-staging.de+1.pem',
|
|
139
|
+
),
|
|
140
|
+
),
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
: 'http',
|
|
144
|
+
devMiddleware: {
|
|
145
|
+
writeToDisk: true,
|
|
146
|
+
},
|
|
137
147
|
onAfterSetupMiddleware: function(devServer) {
|
|
138
148
|
if (!isProd) {
|
|
139
149
|
Consola.success(
|
|
@@ -146,7 +156,7 @@ module.exports = {
|
|
|
146
156
|
plugins: [
|
|
147
157
|
new ESLintPlugin({
|
|
148
158
|
exclude: [
|
|
149
|
-
'node_modules',
|
|
159
|
+
'**/node_modules/**',
|
|
150
160
|
'vendor'
|
|
151
161
|
]
|
|
152
162
|
}),
|
|
@@ -185,7 +195,6 @@ module.exports = {
|
|
|
185
195
|
svg: 'paramCase',
|
|
186
196
|
},
|
|
187
197
|
}),
|
|
188
|
-
|
|
189
198
|
new TimeFixPlugin(),
|
|
190
199
|
|
|
191
200
|
new webpack.DefinePlugin({
|
|
@@ -208,11 +217,11 @@ module.exports = {
|
|
|
208
217
|
].concat(
|
|
209
218
|
Glob.sync(Path.join(privatePath, '/**/*.s?(a|c)ss')).length
|
|
210
219
|
? new StyleLintPlugin({
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
220
|
+
files: '**/Pxsw*/**/*.s?(a|c)ss',
|
|
221
|
+
failOnError: false,
|
|
222
|
+
fix: false,
|
|
223
|
+
configFile: Path.join(__dirname, 'stylelint.config.js'),
|
|
224
|
+
})
|
|
216
225
|
: [],
|
|
217
226
|
),
|
|
218
227
|
watch: false,
|