Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
feat: fix webpack configuration to work with gnome-shell
Browse files Browse the repository at this point in the history
  • Loading branch information
oae committed Apr 9, 2020
1 parent 46b24ea commit 26fd416
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 217 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,4 @@ [email protected]*.zip
_build
node_modules
@types
dist
162 changes: 0 additions & 162 deletions dist/extension.js

This file was deleted.

8 changes: 0 additions & 8 deletions dist/metadata.json

This file was deleted.

2 changes: 0 additions & 2 deletions dist/stylesheet.css

This file was deleted.

5 changes: 0 additions & 5 deletions src/debug.js

This file was deleted.

37 changes: 0 additions & 37 deletions src/extension.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ class Extension {
}
}

function init(): Extension {
export default function (): Extension {
return new Extension();
}
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"lib": ["ES6"],
"target": "ES6",
"lib": ["es2015"],
"target": "es2015",
"module": "commonjs",
"strict": true,
"noImplicitAny": false,
Expand Down
4 changes: 4 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ module.exports = {
entry: ['./src/extension.ts'],
output: {
filename: 'extension.js',
library: 'init',
libraryTarget: 'var',
libraryExport: 'default',
},


plugins: [new webpack.ProgressPlugin(), new MiniCssExtractPlugin({ filename: 'stylesheet.css' })],

Expand Down

0 comments on commit 26fd416

Please sign in to comment.