File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,13 +14,6 @@ function init() {
1414 window . addEventListener ( 'scroll' , trackSticky ) ;
1515 trackSticky ( ) ;
1616
17- let prices = document . querySelectorAll ( '.auto-currency' ) ;
18- for ( let i = 0 ; i < prices . length ; i ++ ) {
19- let priceElem = prices [ i ] ;
20-
21- let price = Math . round ( parseInt ( priceElem . innerHTML ) / window . rateUsdRub ) ;
22- priceElem . insertAdjacentHTML ( 'beforeEnd' , `<span class="auto-currency__usd">(≈${ price } $)</span>` ) ;
23- }
2417}
2518
2619init ( ) ;
Original file line number Diff line number Diff line change @@ -118,10 +118,18 @@ module.exports = function(config) {
118118 {
119119 loader : 'css-loader' ,
120120 options : {
121- minimize : process . env . NODE_ENV == 'production' ? true : false
121+ minimize : process . env . NODE_ENV == 'production' ? true : false ,
122+ importLoaders : 1
123+ }
124+ } ,
125+ {
126+ loader : 'postcss-loader' ,
127+ options : {
128+ plugins : [
129+ require ( 'autoprefixer' )
130+ ]
122131 }
123132 } ,
124- 'autoprefixer-loader' ,
125133 'hover-loader' ,
126134 {
127135 loader : 'stylus-loader' ,
Original file line number Diff line number Diff line change 1313 "precommit" : " NODE_ENV=development node `which gulp` pre-commit" ,
1414 "//" : " node-xmpp-client installs for linux only" ,
1515 "dependencies" : {
16- "autoprefixer-loader " : " *" ,
17- "babel-core" : " ^6" ,
16+ "autoprefixer" : " *" ,
17+ "babel-core" : " ^6.26.3 " ,
1818 "babel-loader" : " ^7" ,
1919 "babel-plugin-transform-flow-strip-types" : " *" ,
2020 "babel-plugin-transform-runtime" : " *" ,
5555 "node-uuid" : " *" ,
5656 "node-zip" : " *" ,
5757 "path-to-regexp" : " *" ,
58+ "postcss-loader" : " *" ,
5859 "prismjs" : " ^1" ,
5960 "request" : " *" ,
6061 "request-promise" : " *" ,
6162 "run-sequence" : " *" ,
6263 "rupture" : " *" ,
6364 "style-loader" : " *" ,
6465 "stylus-loader" : " *" ,
66+ "uglify-js" : " *" ,
67+ "uglifyjs-webpack-plugin" : " ^1" ,
6568 "webpack" : " ^3"
6669 },
6770 "engineStrict" : true ,
You can’t perform that action at this time.
0 commit comments