setup-sp/webpack.config.js
Charles 15e37fb7de
Add a parser to get the version of the .sp plugin (#4)
* Add a parser for plugin versions

* Added webpack to bundle the files

* Fix https to http redirect error
2021-10-08 19:09:08 -04:00

23 lines
No EOL
403 B
JavaScript

const path = require('path');
module.exports = {
entry: './src/index.ts',
mode: "production",
target: 'node',
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
output: {
filename: 'index.js',
path: path.resolve(__dirname, 'lib'),
},
};