Skip to content

Commit 3c1acea

Browse files
committed
Update formatting
1 parent 7b790bc commit 3c1acea

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

webpack.config.js

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@ const CopyPlugin = require('copy-webpack-plugin');
1111
/** @type WebpackConfig */
1212
const extensionConfig = {
1313
target: 'node', // VS Code extensions run in a Node.js-context 📖 -> https://webpack.js.org/configuration/node/
14-
mode: 'none', // this leaves the source code as close as possible to the original (when packaging we set this to 'production')
14+
mode: 'none', // this leaves the source code as close as possible to the original (when packaging we set this to 'production')
1515

1616
entry: './src/extension.ts', // the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/
1717
output: {
1818
// the bundle is stored in the 'dist' folder (check package.json), 📖 -> https://webpack.js.org/configuration/output/
1919
path: path.resolve(__dirname, 'dist'),
2020
filename: 'extension.js',
21-
libraryTarget: 'commonjs2'
21+
libraryTarget: 'commonjs2',
2222
},
2323
externals: {
24-
vscode: 'commonjs vscode' // the vscode-module is created on-the-fly and must be excluded. Add other modules that cannot be webpack'ed, 📖 -> https://webpack.js.org/configuration/externals/
24+
vscode: 'commonjs vscode', // the vscode-module is created on-the-fly and must be excluded. Add other modules that cannot be webpack'ed, 📖 -> https://webpack.js.org/configuration/externals/
2525
// modules added here also need to be added in the .vscodeignore file
2626
},
2727
resolve: {
2828
// support reading TypeScript and JavaScript files, 📖 -> https://github.com/TypeStrong/ts-loader
29-
extensions: ['.ts', '.js']
29+
extensions: ['.ts', '.js'],
3030
},
3131
module: {
3232
rules: [
@@ -35,22 +35,23 @@ const extensionConfig = {
3535
exclude: /node_modules/,
3636
use: [
3737
{
38-
loader: 'ts-loader'
39-
}
40-
]
41-
}
42-
]
38+
loader: 'ts-loader',
39+
},
40+
],
41+
},
42+
],
4343
},
4444
devtool: 'nosources-source-map',
4545
infrastructureLogging: {
46-
level: "log", // enables logging required for problem matchers
46+
level: 'log', // enables logging required for problem matchers
4747
},
4848
plugins: [
4949
new CopyPlugin({
5050
patterns: [
51-
{ from: "src/**/*.json", to: "[name][ext]", }
51+
{from: 'src/**/*.json', to: '[name][ext]'},
52+
{from: 'src/icon.png', to: '[name][ext]'},
5253
],
5354
}),
5455
],
5556
};
56-
module.exports = [ extensionConfig ];
57+
module.exports = [extensionConfig];

0 commit comments

Comments
 (0)