mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 02:15:01 +00:00
Don't polyfill buffer (save 22k!)
This commit is contained in:
parent
3d6f41e68d
commit
37db20f50f
2 changed files with 10 additions and 0 deletions
|
|
@ -7,6 +7,11 @@ module.exports = {
|
|||
resolve: {
|
||||
extensions: [".js"]
|
||||
},
|
||||
node: {
|
||||
// Consider suggesting jsmediatags use: https://github.com/feross/is-buffer
|
||||
// Cuts 22k
|
||||
Buffer: false
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,6 +3,11 @@ const webpack = require("webpack");
|
|||
const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
|
||||
|
||||
module.exports = {
|
||||
node: {
|
||||
// Consider suggesting jsmediatags use: https://github.com/feross/is-buffer
|
||||
// Cuts 22k
|
||||
Buffer: false
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue