@pixolith/webpack-sw6-config 7.0.1 → 7.0.2
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 +16 -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.2",
|
|
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": "3ab953477c9f86b856b61fd10f0899b6189d1389",
|
|
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: 'ws',
|
|
105
|
+
port: 8080,
|
|
106
|
+
},
|
|
103
107
|
overlay: {
|
|
104
108
|
warnings: false,
|
|
105
109
|
errors: true,
|
|
@@ -112,28 +116,7 @@ module.exports = {
|
|
|
112
116
|
'Access-Control-Allow-Headers':
|
|
113
117
|
'X-Requested-With, content-type, Authorization',
|
|
114
118
|
},
|
|
115
|
-
|
|
116
|
-
? {
|
|
117
|
-
ca: fs.readFileSync(
|
|
118
|
-
Path.join(
|
|
119
|
-
process.cwd() +
|
|
120
|
-
'/.ddev/ssl/_wildcard.px-staging.de+1-client.pem',
|
|
121
|
-
),
|
|
122
|
-
),
|
|
123
|
-
key: fs.readFileSync(
|
|
124
|
-
Path.join(
|
|
125
|
-
process.cwd() +
|
|
126
|
-
'/.ddev/ssl/_wildcard.px-staging.de+1-key.pem',
|
|
127
|
-
),
|
|
128
|
-
),
|
|
129
|
-
cert: fs.readFileSync(
|
|
130
|
-
Path.join(
|
|
131
|
-
process.cwd() +
|
|
132
|
-
'/.ddev/ssl/_wildcard.px-staging.de+1.pem',
|
|
133
|
-
),
|
|
134
|
-
),
|
|
135
|
-
}
|
|
136
|
-
: false,
|
|
119
|
+
server: 'http',
|
|
137
120
|
onAfterSetupMiddleware: function(devServer) {
|
|
138
121
|
if (!isProd) {
|
|
139
122
|
Consola.success(
|
|
@@ -146,7 +129,7 @@ module.exports = {
|
|
|
146
129
|
plugins: [
|
|
147
130
|
new ESLintPlugin({
|
|
148
131
|
exclude: [
|
|
149
|
-
'node_modules',
|
|
132
|
+
'**/node_modules/**',
|
|
150
133
|
'vendor'
|
|
151
134
|
]
|
|
152
135
|
}),
|
|
@@ -186,6 +169,10 @@ module.exports = {
|
|
|
186
169
|
},
|
|
187
170
|
}),
|
|
188
171
|
|
|
172
|
+
new webpack.ProvidePlugin({
|
|
173
|
+
process: '../../../../process/browser.js',
|
|
174
|
+
}),
|
|
175
|
+
|
|
189
176
|
new TimeFixPlugin(),
|
|
190
177
|
|
|
191
178
|
new webpack.DefinePlugin({
|
|
@@ -208,11 +195,11 @@ module.exports = {
|
|
|
208
195
|
].concat(
|
|
209
196
|
Glob.sync(Path.join(privatePath, '/**/*.s?(a|c)ss')).length
|
|
210
197
|
? new StyleLintPlugin({
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
198
|
+
files: '**/Pxsw*/**/*.s?(a|c)ss',
|
|
199
|
+
failOnError: false,
|
|
200
|
+
fix: false,
|
|
201
|
+
configFile: Path.join(__dirname, 'stylelint.config.js'),
|
|
202
|
+
})
|
|
216
203
|
: [],
|
|
217
204
|
),
|
|
218
205
|
watch: false,
|