Skip to content

Commit

Permalink
Merge pull request #215 from vania-pooh/master
Browse files Browse the repository at this point in the history
Added new article
  • Loading branch information
vania-pooh authored Jan 29, 2021
2 parents 91c59de + bb22b0c commit 0891e94
Show file tree
Hide file tree
Showing 6 changed files with 1,791 additions and 1,815 deletions.
3,509 changes: 1,723 additions & 1,786 deletions package-lock.json

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,43 +21,43 @@
"author": "",
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/core": "^7.12.10",
"@babel/plugin-proposal-object-rest-spread": "^7.12.1",
"@babel/plugin-syntax-object-rest-spread": "^7.8.3",
"@babel/preset-env": "^7.12.11",
"@babel/register": "^7.12.1",
"@babel/register": "^7.12.10",
"assets-webpack-plugin": "^6.1.2",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.2.2",
"clean-webpack-plugin": "^3.0.0",
"copy-webpack-plugin": "^6.3.2",
"copy-webpack-plugin": "^6.4.1",
"cross-env": "^7.0.3",
"css-loader": "^5.0.1",
"eslint": "^7.14.0",
"eslint": "^7.18.0",
"eslint-plugin-import": "^2.22.1",
"exports-loader": "^1.1.1",
"fancy-log": "^1.3.2",
"file-loader": "^6.2.0",
"hugo-bin": "^0.68.0",
"imports-loader": "^1.2.0",
"mini-css-extract-plugin": "^1.3.2",
"mini-css-extract-plugin": "^1.3.5",
"node-sass": "^5.0.0",
"npm-run-all": "^4.1.5",
"optimize-css-assets-webpack-plugin": "^5.0.4",
"plugin-error": "^1.0.1",
"postcss-import": "^12.0.1",
"postcss-loader": "^3.0.0",
"postcss-loader": "^4.1.0",
"postcss-preset-env": "^6.7.0",
"rimraf": "^3.0.2",
"sass-loader": "^10.1.0",
"style-loader": "^1.2.1",
"sass-loader": "^10.1.1",
"style-loader": "^1.3.0",
"uglifyjs-webpack-plugin": "^2.2.0",
"url-loader": "^4.1.1",
"webpack": "^4.44.2",
"webpack-cli": "^4.3.1",
"webpack-dev-server": "^3.11.1",
"webpack": "^4.46.0",
"webpack-cli": "^4.4.0",
"webpack-dev-server": "^3.11.2",
"webpack-merge": "^5.7.3",
"whatwg-fetch": "^3.4.1"
"whatwg-fetch": "^3.5.0"
},
"resolutions": {
"natives": "1.1.6"
Expand Down
5 changes: 5 additions & 0 deletions site/data/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@
}
],
"articles": [
{
"title": "Selenium: Lightning Fast Mobile Emulation in Kubernetes",
"description": "This article describes how mobile emulation in Chrome browser can save you a lot of time and money.",
"url": "https://aandryashin.medium.com/selenium-lightning-fast-mobile-emulation-in-kubernetes-e41140cd6f54"
},
{
"title": "Browser Automation: How an efficient Selenium Cloud Platform should look like in 2020",
"description": "This article gives more details about Moon Cloud solution.",
Expand Down
18 changes: 3 additions & 15 deletions webpack.common.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const webpack = require("webpack");
const path = require("path");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const AssetsPlugin = require("assets-webpack-plugin");

module.exports = {
Expand All @@ -26,20 +25,9 @@ module.exports = {
loader: "babel-loader",
test: /\.js?$/,
exclude: /node_modules/,
query: {cacheDirectory: true}
},

{
test: /\.(sa|sc|c)ss$/,
exclude: /node_modules/,
use: [
"style-loader", MiniCssExtractPlugin.loader, "css-loader?url=false", "postcss-loader",
{
loader: "sass-loader",
options: {
additionalData: "$prefix: \"" + (process.env.NODE_ENV === "production" ? "/moon" : "") + "\";"
}
}]
options: {
cacheDirectory: true
}
}
]
},
Expand Down
25 changes: 24 additions & 1 deletion webpack.dev.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { merge } = require("webpack-merge");
const {merge} = require("webpack-merge");
const path = require("path");
const {CleanWebpackPlugin} = require("clean-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
Expand All @@ -8,6 +8,29 @@ const common = require("./webpack.common");
module.exports = merge(common, {
mode: "development",

module: {
rules: [
{
test: /\.(sa|sc|c)ss$/,
exclude: /node_modules/,
use: ["style-loader",
{
loader: "css-loader",
options: {
url: false
}
},
"postcss-loader",
{
loader: "sass-loader",
options: {
additionalData: "$prefix: \"" + (process.env.NODE_ENV === "production" ? "/moon" : "") + "\";"
}
}]
}
]
},

output: {
filename: "[name].js",
chunkFilename: "[id].css"
Expand Down
25 changes: 24 additions & 1 deletion webpack.prod.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { merge } = require("webpack-merge");
const {merge} = require("webpack-merge");
const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
Expand All @@ -8,6 +8,29 @@ const common = require("./webpack.common.js");
module.exports = merge(common, {
mode: "production",

module: {
rules: [
{
test: /\.(sa|sc|c)ss$/,
exclude: /node_modules/,
use: [MiniCssExtractPlugin.loader,
{
loader: "css-loader",
options: {
url: false
}
},
"postcss-loader",
{
loader: "sass-loader",
options: {
additionalData: "$prefix: \"" + (process.env.NODE_ENV === "production" ? "/moon" : "") + "\";"
}
}]
}
]
},

output: {
filename: "[name].[hash:5].js",
chunkFilename: "[id].[hash:5].css"
Expand Down

0 comments on commit 0891e94

Please sign in to comment.