Cleanup webpack example configs (#606)

* Remove Buffer/process plugins

* Adjust

* Cleanup README
This commit is contained in:
Jaco
2022-01-29 10:54:55 +01:00
committed by GitHub
parent 7a04464686
commit 35c8535be1
10 changed files with 14 additions and 224 deletions
@@ -2,9 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
const path = require('path');
const VueLoaderPlugin = require('vue-loader/lib/plugin');
const { WebpackPluginServe } = require('webpack-plugin-serve');
const webpack = require('webpack');
module.exports = {
context: __dirname,
@@ -22,10 +20,6 @@ module.exports = {
options: require('../../babel.config.cjs')
}
]
},
{
loader: 'vue-loader',
test: /\.vue$/
}
]
},
@@ -42,13 +36,6 @@ module.exports = {
port: 8080,
progress: false, // since we have hmr off, disable
static: __dirname
}),
new VueLoaderPlugin(),
new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer']
}),
new webpack.ProvidePlugin({
process: 'process/browser'
})
],
resolve: {
@@ -56,10 +43,10 @@ module.exports = {
'@polkadot/ui-keyring': path.resolve(__dirname, '../ui-keyring/build'),
'@polkadot/ui-settings': path.resolve(__dirname, '../ui-settings/build'),
'@polkadot/ui-shared': path.resolve(__dirname, '../ui-shared/build'),
'@polkadot/vue-identicon': path.resolve(__dirname, '../vue-identicon/build'),
'process/browser': require.resolve('process/browser')
'@polkadot/vue-identicon': path.resolve(__dirname, '../vue-identicon/build')
},
extensions: ['.js', '.ts', '.tsx']
},
target: 'web',
watch: true
};