Updated outdates packages.
Also includes updating webpack configs to support newer versions.
This commit is contained in:
@@ -2,7 +2,7 @@ try {
|
||||
module.exports = require("../env/lottery.config");
|
||||
} catch (e) {
|
||||
console.error(
|
||||
"You haven't defined lottery-configs, you sure you want to continue without them?"
|
||||
"⚠️ You haven't defined lottery-configs, you sure you want to continue without them?\n"
|
||||
);
|
||||
module.exports = {
|
||||
name: "NAME MISSING",
|
||||
|
||||
@@ -2,7 +2,7 @@ try {
|
||||
module.exports = require("../env/push.config");
|
||||
} catch (e) {
|
||||
console.error(
|
||||
"You haven't defined push-parameters, you sure you want to continue without them?"
|
||||
"⚠️ You haven't defined push-parameters, you sure you want to continue without them?\n"
|
||||
);
|
||||
module.exports = { publicKey: false, privateKey: false, mailto: false };
|
||||
}
|
||||
|
||||
@@ -57,14 +57,6 @@ const webpackConfig = function(isDev) {
|
||||
{ loader: "sass-loader", options: { sourceMap: isDev } }
|
||||
]
|
||||
},
|
||||
{
|
||||
test: /\.sass$/,
|
||||
use: [
|
||||
isDev ? "vue-style-loader" : MiniCSSExtractPlugin.loader,
|
||||
{ loader: "css-loader", options: { sourceMap: isDev } },
|
||||
{ loader: "sass-loader", options: { sourceMap: isDev } }
|
||||
]
|
||||
},
|
||||
{
|
||||
test: /\.woff(2)?(\?[a-z0-9]+)?$/,
|
||||
loader: "url-loader",
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
|
||||
const path = require("path");
|
||||
const webpack = require("webpack");
|
||||
const merge = require("webpack-merge");
|
||||
const { merge } = require("webpack-merge");
|
||||
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
||||
const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin");
|
||||
const MiniCSSExtractPlugin = require("mini-css-extract-plugin");
|
||||
@@ -23,7 +23,7 @@ const webpackConfig = merge(commonConfig(false), {
|
||||
output: {
|
||||
path: helpers.root("public/dist"),
|
||||
publicPath: "/public/dist/",
|
||||
filename: "js/[name].bundle.[hash:7].js"
|
||||
filename: "js/[name].bundle.[fullhash:7].js"
|
||||
},
|
||||
optimization: {
|
||||
splitChunks: {
|
||||
@@ -64,7 +64,7 @@ const webpackConfig = merge(commonConfig(false), {
|
||||
new CleanWebpackPlugin(), // clean output folder
|
||||
new webpack.EnvironmentPlugin(environment),
|
||||
new MiniCSSExtractPlugin({
|
||||
filename: "css/[name].[hash:7].css"
|
||||
filename: "css/[name].[fullhash:7].css"
|
||||
})
|
||||
]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user