This repository was archived by the owner on Dec 3, 2024. It is now read-only.
File tree 4 files changed +11
-7
lines changed
4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 5
5
"license" : " GPL-3.0-or-later" ,
6
6
"scripts" : {
7
7
"test" : " echo \" Error: no test specified\" && exit 1" ,
8
- "lint" : " eslint --ignore-path .gitignore . " ,
8
+ "lint" : " eslint --ignore-path .gitignore src " ,
9
9
"stylelint" : " npx stylelint \" **/*.scss\" " ,
10
10
"start" : " webpack serve --open --config webpack.dev.js" ,
11
11
"build" : " webpack --config webpack.prod.js" ,
Original file line number Diff line number Diff line change @@ -26,7 +26,10 @@ export default class Editor {
26
26
constructor ( ) {
27
27
if ( "serviceWorker" in navigator ) {
28
28
window . addEventListener ( "load" , ( ) => {
29
- navigator . serviceWorker . register ( "service-worker.js" ) ;
29
+ navigator . serviceWorker . register ( "service-worker.js" )
30
+ . catch ( ( ) => {
31
+ //
32
+ } ) ;
30
33
} ) ;
31
34
}
32
35
Original file line number Diff line number Diff line change 2
2
3
3
const path = require ( "path" ) ;
4
4
5
- const ESLintPlugin = require ( "eslint-webpack-plugin" ) ;
6
5
const { GitRevisionPlugin} = require ( "git-revision-webpack-plugin" ) ;
7
6
const HtmlWebpackPlugin = require ( "html-webpack-plugin" ) ;
8
7
const MiniCssExtractPlugin = require ( "mini-css-extract-plugin" ) ;
@@ -81,9 +80,6 @@ module.exports = {
81
80
"LASTCOMMITDATETIME" : JSON . stringify ( gitRevisionPlugin . lastcommitdatetime ( ) ) ,
82
81
} ,
83
82
} ) ,
84
- new ESLintPlugin ( {
85
- files : path . resolve ( __dirname , "." ) ,
86
- } ) ,
87
83
new HtmlWebpackPlugin ( {
88
84
title : "webgm" ,
89
85
excludeChunks : [ "main-game" ] ,
Original file line number Diff line number Diff line change 1
1
/* eslint-env node, commonjs */
2
2
3
+ const ESLintPlugin = require ( "eslint-webpack-plugin" ) ;
3
4
const path = require ( "path" ) ;
4
-
5
5
const { mergeWithRules} = require ( "webpack-merge" ) ;
6
6
7
7
const common = require ( "./webpack.common.js" ) ;
@@ -44,4 +44,9 @@ module.exports = mergeWithRules({
44
44
} ,
45
45
} ,
46
46
devtool : "inline-source-map" ,
47
+ plugins : [
48
+ new ESLintPlugin ( {
49
+ files : path . resolve ( __dirname , "." ) ,
50
+ } )
51
+ ] ,
47
52
} ) ;
You can’t perform that action at this time.
0 commit comments