1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-24 01:08:27 +00:00

minimized css

This commit is contained in:
Szymon Lesisz 2018-05-15 11:25:13 +02:00
parent c7164702a5
commit 7c498e9012
2 changed files with 14 additions and 8 deletions

View File

@ -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 ../

View File

@ -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)