improve(plugin): basic impls of file storage api for specific plugin context

This commit is contained in:
charlie
2021-07-09 15:19:13 +08:00
committed by Tienson Qin
parent e2a047c1ac
commit 661bb064f7
12 changed files with 234 additions and 17 deletions

View File

@@ -1,4 +1,5 @@
const path = require('path')
const webpack = require('webpack')
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
module.exports = {
@@ -16,11 +17,14 @@ module.exports = {
extensions: ['.tsx', '.ts', '.js'],
},
plugins: [
new webpack.ProvidePlugin({
process: 'process/browser',
}),
// new BundleAnalyzerPlugin()
],
output: {
library: "LSPluginEntry",
libraryTarget: "umd",
library: 'LSPluginEntry',
libraryTarget: 'umd',
filename: 'lsplugin.user.js',
path: path.resolve(__dirname, 'dist')
},