[add-lint-and-ci] - added lint, ci and boilerplate for plugin building
This commit is contained in:
43
webpack.config.js
Normal file
43
webpack.config.js
Normal file
@@ -0,0 +1,43 @@
|
||||
module.exports = {
|
||||
entry: './src/index.tsx',
|
||||
output: {
|
||||
filename: '<PluginName>.js',
|
||||
library: '<PluginName>',
|
||||
libraryTarget: 'umd',
|
||||
publicPath: '/static/',
|
||||
globalObject: 'this',
|
||||
},
|
||||
devServer: {
|
||||
allowedHosts: 'all',
|
||||
port: 4701,
|
||||
host: 'localhost',
|
||||
hot: false,
|
||||
liveReload: false,
|
||||
client: {
|
||||
overlay: false,
|
||||
},
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.(js|jsx)$/,
|
||||
exclude: /node_modules/,
|
||||
use: {
|
||||
loader: 'babel-loader',
|
||||
},
|
||||
},
|
||||
{
|
||||
test: /\.css$/,
|
||||
use: ['style-loader', 'css-loader'],
|
||||
},
|
||||
{
|
||||
test: /\.tsx?$/,
|
||||
use: 'ts-loader',
|
||||
exclude: /node_modules/,
|
||||
},
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.js', '.jsx', '.tsx', '.ts'],
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user