pojokcodeid.nvim-lazy/snippets/laravel-blade/webpack.config.js

37 lines
629 B
JavaScript
Raw Permalink Normal View History

2023-03-03 07:09:50 +07:00
//@ts-check
'use strict';
const path = require('path');
/**@type {import('webpack').Configuration}*/
const config = {
target: 'node',
entry: './src/extension.ts',
output: {
path: path.resolve(__dirname, 'out'),
filename: 'extension.js',
libraryTarget: 'commonjs2'
},
devtool: 'source-map',
externals: {
vscode: 'commonjs vscode'
},
resolve: {
extensions: ['.ts', '.js']
},
module: {
rules: [
{
test: /\.ts$/,
exclude: /node_modules/,
use: [
{
loader: 'ts-loader'
}
]
}
]
}
};
2023-01-15 00:19:37 +07:00
module.exports = config;