mirror of
https://github.com/yldio/copilot.git
synced 2024-11-14 23:30:05 +02:00
build: don't uglify
This commit is contained in:
parent
29b42fd4fc
commit
443752dc75
@ -1,3 +1,4 @@
|
||||
const webpack = require('webpack');
|
||||
const isString = require('lodash.isstring');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
@ -8,6 +9,10 @@ const FRONTEND = path.join(FRONTEND_ROOT, 'src');
|
||||
module.exports = config => {
|
||||
config.resolve.plugins = [];
|
||||
|
||||
config.plugins = config.plugins.filter(
|
||||
plugin => !(plugin instanceof webpack.optimize.UglifyJsPlugin)
|
||||
);
|
||||
|
||||
config.module.rules = config.module.rules
|
||||
.reduce((loaders, loader, index) => {
|
||||
if (Array.isArray(loader.use)) {
|
||||
|
@ -23,7 +23,7 @@
|
||||
"compile-watch:umd": "cross-env NODE_ENV=test babel src --out-dir dist/umd --source-maps inline --watch",
|
||||
"compile": "redrun -p compile:*",
|
||||
"watch": "redrun copy-fonts && redrun -p compile-watch:*",
|
||||
"styleguide:build": "cross-env NODE_ENV=development styleguidist build",
|
||||
"styleguide:build": "cross-env NODE_ENV=production styleguidist build",
|
||||
"styleguide": "cross-env NODE_ENV=development styleguidist server",
|
||||
"postinstall": "redrun -s copy-fonts compile"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user