mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 08:56:43 -06:00
Fix: Include Buffer in webpack build (#38819)
This commit is contained in:
parent
b22c2543d0
commit
7e6cf14c84
@ -1,5 +1,6 @@
|
||||
const fs = require('fs-extra');
|
||||
const path = require('path');
|
||||
const webpack = require('webpack');
|
||||
|
||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
|
||||
@ -58,6 +59,9 @@ module.exports = {
|
||||
source: false,
|
||||
},
|
||||
plugins: [
|
||||
new webpack.ProvidePlugin({
|
||||
Buffer: ['buffer', 'Buffer'],
|
||||
}),
|
||||
new CopyUniconsPlugin(),
|
||||
new CopyWebpackPlugin({
|
||||
patterns: [
|
||||
|
Loading…
Reference in New Issue
Block a user