mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-24 01:08:27 +00:00
minimized css
This commit is contained in:
parent
c7164702a5
commit
7c498e9012
2
build.sh
2
build.sh
@ -7,7 +7,7 @@ yarn run build
|
||||
printf "\n-- COPYING FILES ----------------------\n"
|
||||
|
||||
# cd build
|
||||
# rsync -avz --delete -e ssh . admin@dev.sldev.cz:~/experiments/www
|
||||
# rsync -avz --delete -e ssh ./build/* admin@dev.sldev.cz:~/experiments/www
|
||||
rsync -avz --delete -e ssh ./build/* admin@dev.sldev.cz:~/mytrezor/www/ethereum
|
||||
# rsync -avz --delete -e ssh ./build/* admin@dev.sldev.cz:~/experiments/www
|
||||
cd ../
|
||||
|
@ -29,8 +29,14 @@ module.exports = {
|
||||
include: `${SRC}styles`,
|
||||
loader: extractLess.extract({
|
||||
use: [
|
||||
{ loader: 'css-loader' },
|
||||
{ loader: 'less-loader' }
|
||||
{
|
||||
loader: 'css-loader',
|
||||
options: { minimize: true }
|
||||
},
|
||||
{
|
||||
loader: 'less-loader',
|
||||
options: { minimize: true }
|
||||
}
|
||||
],
|
||||
fallback: 'style-loader'
|
||||
})
|
||||
@ -103,11 +109,11 @@ module.exports = {
|
||||
]),
|
||||
new webpack.optimize.OccurrenceOrderPlugin(),
|
||||
new webpack.NoEmitOnErrorsPlugin(),
|
||||
// new webpack.optimize.UglifyJsPlugin({
|
||||
// compress: {
|
||||
// warnings: false,
|
||||
// }
|
||||
// }),
|
||||
new webpack.optimize.UglifyJsPlugin({
|
||||
compress: {
|
||||
warnings: false,
|
||||
}
|
||||
}),
|
||||
new webpack.DefinePlugin({
|
||||
'process.env.NODE_ENV': JSON.stringify('production'),
|
||||
PRODUCTION: JSON.stringify(false)
|
||||
|
Loading…
Reference in New Issue
Block a user