diff --git a/dist/index.js b/dist/index.js index 47e0123..9cf6023 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,2 +1,2 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):"object"==typeof exports?exports["vue-notification"]=t(require("vue")):e["vue-notification"]=t(e.vue)}(window,function(n){return function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/dist/",o(o.s=5)}([function(e,t,n){var r=n(3);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(6).default)("36b68991",r,!0,{})},function(e,t){e.exports=n},function(e,t,n){"use strict";var r=n(0);n.n(r).a},function(e,t,n){(e.exports=n(4)(!1)).push([e.i,"\n.vue-up[data-v-70c009b6] {\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n height: 100vh;\n z-index: 1000000000;\n pointer-events: none;\n}\n.vue-up.--show[data-v-70c009b6] {\n opacity: 1;\n}\n.vue-up[data-v-70c009b6]:not(.--show) {\n opacity: 0;\n transition: opacity .4s;\n}\n.vue-up .text[data-v-70c009b6] {\n color: #fff;\n font-family: 'Arial', sans-serif;\n position: absolute;\n text-align: center;\n top: 50%;\n transform: translateY(-50%);\n left: 0;\n right: 0;\n margin-left: auto;\n margin-right: auto;\n}\n\n",""])},function(e,t,n){"use strict";e.exports=function(n){var s=[];return s.toString=function(){return this.map(function(e){var t=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(r),i=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(i).concat([o]).join("\n")}return[n].join("\n")}(e,n);return e[2]?"@media "+e[2]+"{"+t+"}":t}).join("")},s.i=function(e,t){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},r=0;rn.parts.length&&(r.parts.length=n.parts.length)}else{var i=[];for(o=0;on.parts.length&&(o.parts.length=n.parts.length)}else{var a=[];for(r=0;r (https://github.com/chryb)", "private": false, "license": "MIT", @@ -27,14 +27,10 @@ "@babel/preset-env": "^7.4.1", "@babel/types": "^7.4.0", "babel-loader": "^8.0.5", - "cross-env": "^5.2.0", - "css-loader": "^2.1.1", - "file-loader": "^3.0.1", - "mini-css-extract-plugin": "^0.5.0", - "node-sass": "^4.11.0", - "optimize-css-assets-webpack-plugin": "^5.0.1", - "sass-loader": "^7.1.0", - "uglifyjs-webpack-plugin": "^2.1.2", + "cross-env": "^6.0.3", + "css-loader": "^3.4.2", + "file-loader": "^5.0.2", + "mini-css-extract-plugin": "^0.9.0", "vue": "^2.6.10", "vue-loader": "^15.7.0", "vue-template-compiler": "^2.6.10", diff --git a/webpack.config.js b/webpack.config.js index ed804d8..da25958 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -2,9 +2,7 @@ const path = require('path') const webpack = require('webpack') const devMode = process.env.NODE_ENV !== 'production'; const VueLoaderPlugin = require('vue-loader/lib/plugin'); -const MiniCssExtractPlugin = require("mini-css-extract-plugin") -const UglifyJsPlugin = require("uglifyjs-webpack-plugin"); -const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin"); +const MiniCssExtractPlugin = require("mini-css-extract-plugin"); module.exports = { @@ -22,13 +20,7 @@ module.exports = { rules: [ { test: /\.vue$/, - loader: 'vue-loader', - options: { - loaders: { - 'scss': 'vue-style-loader!css-loader!sass-loader', - 'sass': 'vue-style-loader!css-loader!sass-loader?indentedSyntax' - } - } + loader: 'vue-loader' }, { test: /\.css$/, @@ -61,22 +53,6 @@ module.exports = { } }, - optimization: { - minimizer: [ - new UglifyJsPlugin({ - sourceMap: true, - parallel: 4, - uglifyOptions: { - warnings: false, - compress: { - warnings: false - }, - }, - }), - new OptimizeCSSAssetsPlugin({}) - ] - }, - devServer: { historyApiFallback: true, noInfo: true