mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
integrate PostCSS-plugin for RTL-adaptivity
This commit is contained in:
parent
ca89dab45f
commit
6cf298c2bc
2 changed files with 13 additions and 1 deletions
|
@ -150,6 +150,7 @@
|
||||||
"nodemon": "^1.19.1",
|
"nodemon": "^1.19.1",
|
||||||
"postcss-import": "^12.0.1",
|
"postcss-import": "^12.0.1",
|
||||||
"postcss-loader": "^3.0.0",
|
"postcss-loader": "^3.0.0",
|
||||||
|
"postcss-rtl": "^1.7.3",
|
||||||
"preprocess-loader": "^0.3.0",
|
"preprocess-loader": "^0.3.0",
|
||||||
"prettier": "^1.11.1",
|
"prettier": "^1.11.1",
|
||||||
"prop-types": "^15.6.2",
|
"prop-types": "^15.6.2",
|
||||||
|
|
|
@ -38,7 +38,18 @@ let baseConfig = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.s?css$/,
|
test: /\.s?css$/,
|
||||||
use: ['style-loader', 'css-loader', 'postcss-loader', 'sass-loader'],
|
use: [
|
||||||
|
{ loader: 'style-loader' },
|
||||||
|
{ loader: 'css-loader' },
|
||||||
|
{ loader: 'postcss-loader',
|
||||||
|
options: {
|
||||||
|
plugins: function () {
|
||||||
|
return [ require( 'postcss-rtl' )() ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ loader: 'sass-loader'},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.(png|svg|gif)$/,
|
test: /\.(png|svg|gif)$/,
|
||||||
|
|
Loading…
Add table
Reference in a new issue