Skip to content

Commit

Permalink
Meta: Update dependencies and simplify build (#3639)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Oct 14, 2020
1 parent c18c22e commit dd60ee1
Show file tree
Hide file tree
Showing 9 changed files with 13,306 additions and 11,726 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
node_modules
yarn.lock
distribution
distribution/build
test/web-ext-profile
!test/web-ext-profile/.gitkeep
.cache
Expand Down
File renamed without changes
12 changes: 6 additions & 6 deletions source/manifest.json → distribution/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
},
"background": {
"scripts": [
"browser-polyfill.min.js",
"background.js"
"build/browser-polyfill.js",
"build/background.js"
]
},
"content_scripts": [
Expand All @@ -46,15 +46,15 @@
"https://gist.github.com/*"
],
"css": [
"refined-github.css"
"build/refined-github.css"
],
"js": [
"browser-polyfill.min.js",
"refined-github.js"
"build/browser-polyfill.js",
"build/refined-github.js"
]
}
],
"web_accessible_resources": [
"resolve-conflicts.js"
"build/resolve-conflicts.js"
]
}
6 changes: 3 additions & 3 deletions source/options.html → distribution/options.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!doctype html>
<meta charset="utf-8">
<title>Refined GitHub options</title>
<link rel="stylesheet" href="options.css">
<link rel="stylesheet" href="build/options.css">
<form id="options-form" class="detail-view-container">
<p>
<label>
Expand Down Expand Up @@ -67,5 +67,5 @@
</div>

</form>
<script src="browser-polyfill.min.js"></script>
<script src="options.js"></script>
<script src="build/browser-polyfill.js"></script>
<script src="build/options.js"></script>
1 change: 1 addition & 0 deletions octicon-svg-loader.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import path from 'path';
import webpack from 'webpack';

// @ts-expect-error due to https://github.com/webpack/webpack/issues/11630
export default function svgLoader(this: webpack.loader.LoaderContext, source: string): string {
const iconName = path.basename(this.resourcePath, path.extname(this.resourcePath));
const svgWithClass = source.replace(
Expand Down

0 comments on commit dd60ee1

Please sign in to comment.