commit 11e97dc4e81ead6997120f03390944b2a18d6899
parent aa3f2fcfb2d68bb7aec7e43e2c242ea9a9f89425
Author: unitehenry <unitehenry@gmail.com>
Date: Thu, 17 Oct 2019 16:52:05 -0400
webpack config
Diffstat:
2 files changed, 53 insertions(+), 7 deletions(-)
diff --git a/dist/index.js b/dist/index.js
@@ -96,6 +96,41 @@ return /******/ (function(modules) { // webpackBootstrap
/************************************************************************/
/******/ ({
+/***/ "./node_modules/css-loader/dist/cjs.js!./src/striveneditor.css":
+/*!*********************************************************************!*\
+ !*** ./node_modules/css-loader/dist/cjs.js!./src/striveneditor.css ***!
+ \*********************************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+eval("exports = module.exports = __webpack_require__(/*! ../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.i, \"/**\\r\\n** - Editor\\r\\n** - Toolbar\\r\\n** - Image Menu\\r\\n** - File element\\r\\n** - Meta Item\\r\\n** - Link Menu\\r\\n*/\\r\\n\\r\\n/** Editor **/\\r\\n\\r\\n.Striven-Editor.editor {\\r\\n\\tborder: 2px solid #ddd;\\r\\n\\tdisplay: flex;\\r\\n\\tposition: relative;\\r\\n\\tflex-direction: column;\\r\\n\\tfont-family: Arial;\\r\\n\\tmax-width: 100%;\\r\\n\\tmin-height: auto;\\r\\n\\tmax-height: auto;\\r\\n\\theight: auto;\\r\\n}\\r\\n\\r\\n.Striven-Editor .body {\\r\\n\\toutline: none;\\r\\n\\tpadding: 10px 20px;\\r\\n\\tmin-height: auto;\\r\\n\\tmax-height: auto;\\r\\n\\theight: auto;\\r\\n}\\r\\n\\r\\n\\r\\n/** Toolbar **/\\r\\n\\r\\n.Striven-Editor .toolbar {\\r\\n\\tdisplay: flex;\\r\\n\\tjustify-content: space-between;\\r\\n\\talign-items: center;\\r\\n\\tflex-wrap: wrap;\\r\\n\\tposition: relative\\r\\n}\\r\\n\\r\\n.Striven-Editor .toolbar-options {\\r\\n\\tmargin: 0 10px;\\r\\n}\\r\\n\\r\\n.Striven-Editor .custom-toolbar-button {\\r\\n\\tdisplay: none;\\r\\n\\tcolor: #fff;\\r\\n\\tbackground-color: #5cb85c;\\r\\n\\twidth: 50px;\\r\\n\\ttext-align: center;\\r\\n\\tjustify-content: center;\\r\\n\\talign-content: center;\\r\\n\\talign-items: center;\\r\\n\\tcursor: pointer;\\r\\n\\tborder: 1px solid #4cae4c;\\r\\n\\talign-self: flex-end\\r\\n}\\r\\n\\r\\n/** Image Menu **/\\r\\n\\r\\n.Striven-Editor .image-menu {\\r\\n\\tdisplay: none;\\r\\n\\tposition: absolute;\\r\\n\\tright: 10px;\\r\\n\\tbottom: 10px;\\r\\n\\tbackground-color: #fff;\\r\\n\\tborder: 2px solid #ddd;\\r\\n\\tpadding: 10px 20px;\\r\\n\\tz-index: 1000;\\r\\n}\\r\\n\\r\\n.Striven-Editor .image-menu-button {\\r\\n\\tcursor: pointer;\\r\\n\\tfloat: right;\\r\\n\\tpadding: 6px 12px;\\r\\n\\tborder: 1px solid #4cae4c;\\r\\n\\tbackground-color: #5cb85c;\\r\\n\\tfont-size: 14px;\\r\\n\\tcolor: #fff;\\r\\n\\toutline: none;\\r\\n}\\r\\n\\r\\n.Striven-Editor .image-menu-form {\\r\\n\\tdisplay: flex;\\r\\n\\tjustify-content: space-between;\\r\\n\\tmargin: 5px 0;\\r\\n}\\r\\n\\r\\n.Striven-Editor .image-menu-form-label {\\r\\n\\tmargin: 8px 10px 8px 0;\\r\\n\\tfont-size: 14px;\\r\\n\\twidth: 100%;\\r\\n\\ttext-align: right;\\r\\n\\tmargin-right: 10px;\\r\\n}\\r\\n\\r\\n.Striven-Editor .image-menu-form-source-input {\\r\\n\\toutline: none;\\r\\n\\tpadding: 0 5px;\\r\\n}\\r\\n\\r\\n/** File Element **/\\r\\n\\r\\n.Striven-Editor .file-el {\\r\\n\\twidth: 100%;\\r\\n\\tdisplay: flex;\\r\\n\\tflex-direction: column;\\r\\n\\tmargin: 10px;\\r\\n\\tposition: relative;\\r\\n}\\r\\n\\r\\n.Striven-Editor .file-name-el {\\r\\n\\tfont-weight: bold;\\r\\n\\tmargin: 0;\\r\\n}\\r\\n\\r\\n.Striven-Editor .file-size-el {\\r\\n\\tfont-size: 12px;\\r\\n\\tmargin: 2px 0;\\r\\n}\\r\\n\\r\\n.Striven-Editor .remove-file-el {\\r\\n\\tmargin: 0;\\r\\n\\tuser-select: none;\\r\\n\\tcolor: black;\\r\\n\\tposition: absolute;\\r\\n\\tright: 5px;\\r\\n\\ttop: -5px;\\r\\n\\tcursor: pointer;\\r\\n\\tbackground-color: #fff\\r\\n}\\r\\n\\r\\n/** Meta Item **/\\r\\n\\r\\n.Striven-Editor .meta-item-el {\\r\\n\\twidth: 100%;\\r\\n\\tdisplay: flex;\\r\\n\\tmargin: 10px;\\r\\n\\tposition: relative\\r\\n}\\r\\n\\r\\n.Striven-Editor .meta-image-el {\\r\\n\\tmargin-right: 10px;\\r\\n\\theight: 50px;\\r\\n\\twidth: 75px;\\r\\n}\\r\\n\\r\\n.Striven-Editor .meta-data-title-el {\\r\\n\\tfont-weight: bold;\\r\\n\\tmargin: 0;\\r\\n}\\r\\n\\r\\n.Striven-Editor .remove-meta-data-el {\\r\\n\\tuser-select: none;\\r\\n\\tcolor: black;\\r\\n\\tposition: absolute;\\r\\n\\tright: 5px;\\r\\n\\ttop: -5px;\\r\\n\\tcursor: pointer;\\r\\n\\tbackground-color: #fff;\\r\\n}\\r\\n\\r\\n.Striven-Editor .metadata-section, .Striven-Editor .files-section {\\r\\n\\tdisplay: flex;\\r\\n\\tflex-wrap: wrap;\\r\\n\\tz-index: 500\\r\\n}\\r\\n\\r\\n/** Link Menu **/\\r\\n\\r\\n.Striven-Editor .link-menu {\\r\\n\\tdisplay: none;\\r\\n\\tposition: absolute;\\r\\n\\tright: 10px;\\r\\n\\tbottom: 10px;\\r\\n\\tbackground-color: #fff;\\r\\n\\tborder: 2px solid #ddd;\\r\\n\\tpadding: 10px 20px;\\r\\n\\tz-index: 1000;\\t\\r\\n}\\r\\n\\r\\n.Striven-Editor .link-menu-form-label {\\r\\n\\tmargin: 8px 10px 8px 0;\\r\\n\\tfont-size: 14px;\\r\\n\\twidth: 100%;\\r\\n\\ttext-align: right;\\r\\n\\tmargin-right: 10px;\\r\\n}\\r\\n\\r\\n.Striven-Editor .link-menu-form-input {\\r\\n\\toutline: none;\\r\\n\\tpadding: 0 5px;\\r\\n}\\r\\n\\r\\n.Striven-Editor .link-menu-form {\\r\\n\\tdisplay: flex;\\r\\n\\tjustify-content: space-between;\\r\\n\\tmargin: 5px 0;\\r\\n}\\r\\n\\r\\n.Striven-Editor .link-menu-button {\\r\\n\\tcursor: pointer;\\r\\n\\tfloat: right;\\r\\n\\tpadding: 6px 12px;\\r\\n\\tborder: 1px solid #4cae4c;\\r\\n\\tbackground-color: #5cb85c;\\r\\n\\tfont-size: 14px;\\r\\n\\tcolor: #fff;\\r\\n\\toutline: none;\\r\\n}\", \"\"]);\n\n\n//# sourceURL=webpack://striveneditor/./src/striveneditor.css?./node_modules/css-loader/dist/cjs.js");
+
+/***/ }),
+
+/***/ "./node_modules/css-loader/dist/runtime/api.js":
+/*!*****************************************************!*\
+ !*** ./node_modules/css-loader/dist/runtime/api.js ***!
+ \*****************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+eval("\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\n// eslint-disable-next-line func-names\nmodule.exports = function (useSourceMap) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = cssWithMappingToString(item, useSourceMap);\n\n if (item[2]) {\n return \"@media \".concat(item[2], \"{\").concat(content, \"}\");\n }\n\n return content;\n }).join('');\n }; // import a list of modules into the list\n // eslint-disable-next-line func-names\n\n\n list.i = function (modules, mediaQuery) {\n if (typeof modules === 'string') {\n // eslint-disable-next-line no-param-reassign\n modules = [[null, modules, '']];\n }\n\n var alreadyImportedModules = {};\n\n for (var i = 0; i < this.length; i++) {\n // eslint-disable-next-line prefer-destructuring\n var id = this[i][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n\n for (var _i = 0; _i < modules.length; _i++) {\n var item = modules[_i]; // skip already imported module\n // this implementation is not 100% perfect for weird media query combinations\n // when a module is imported multiple times with different media queries.\n // I hope this will never occur (Hey this way we have smaller bundles)\n\n if (item[0] == null || !alreadyImportedModules[item[0]]) {\n if (mediaQuery && !item[2]) {\n item[2] = mediaQuery;\n } else if (mediaQuery) {\n item[2] = \"(\".concat(item[2], \") and (\").concat(mediaQuery, \")\");\n }\n\n list.push(item);\n }\n }\n };\n\n return list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n var content = item[1] || ''; // eslint-disable-next-line prefer-destructuring\n\n var cssMapping = item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (useSourceMap && typeof btoa === 'function') {\n var sourceMapping = toComment(cssMapping);\n var sourceURLs = cssMapping.sources.map(function (source) {\n return \"/*# sourceURL=\".concat(cssMapping.sourceRoot).concat(source, \" */\");\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n }\n\n return [content].join('\\n');\n} // Adapted from convert-source-map (MIT)\n\n\nfunction toComment(sourceMap) {\n // eslint-disable-next-line no-undef\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n return \"/*# \".concat(data, \" */\");\n}\n\n//# sourceURL=webpack://striveneditor/./node_modules/css-loader/dist/runtime/api.js?");
+
+/***/ }),
+
+/***/ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":
+/*!****************************************************************************!*\
+ !*** ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js ***!
+ \****************************************************************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+eval("\n\nvar stylesInDom = {};\n\nvar isOldIE = function isOldIE() {\n var memo;\n return function memorize() {\n if (typeof memo === 'undefined') {\n // Test for IE <= 9 as proposed by Browserhacks\n // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805\n // Tests for existence of standard globals is to allow style-loader\n // to operate correctly into non-standard environments\n // @see https://github.com/webpack-contrib/style-loader/issues/177\n memo = Boolean(window && document && document.all && !window.atob);\n }\n\n return memo;\n };\n}();\n\nvar getTarget = function getTarget() {\n var memo = {};\n return function memorize(target) {\n if (typeof memo[target] === 'undefined') {\n var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself\n\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n\n memo[target] = styleTarget;\n }\n\n return memo[target];\n };\n}();\n\nfunction listToStyles(list, options) {\n var styles = [];\n var newStyles = {};\n\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var css = item[1];\n var media = item[2];\n var sourceMap = item[3];\n var part = {\n css: css,\n media: media,\n sourceMap: sourceMap\n };\n\n if (!newStyles[id]) {\n styles.push(newStyles[id] = {\n id: id,\n parts: [part]\n });\n } else {\n newStyles[id].parts.push(part);\n }\n }\n\n return styles;\n}\n\nfunction addStylesToDom(styles, options) {\n for (var i = 0; i < styles.length; i++) {\n var item = styles[i];\n var domStyle = stylesInDom[item.id];\n var j = 0;\n\n if (domStyle) {\n domStyle.refs++;\n\n for (; j < domStyle.parts.length; j++) {\n domStyle.parts[j](item.parts[j]);\n }\n\n for (; j < item.parts.length; j++) {\n domStyle.parts.push(addStyle(item.parts[j], options));\n }\n } else {\n var parts = [];\n\n for (; j < item.parts.length; j++) {\n parts.push(addStyle(item.parts[j], options));\n }\n\n stylesInDom[item.id] = {\n id: item.id,\n refs: 1,\n parts: parts\n };\n }\n }\n}\n\nfunction insertStyleElement(options) {\n var style = document.createElement('style');\n\n if (typeof options.attributes.nonce === 'undefined') {\n var nonce = true ? __webpack_require__.nc : undefined;\n\n if (nonce) {\n options.attributes.nonce = nonce;\n }\n }\n\n Object.keys(options.attributes).forEach(function (key) {\n style.setAttribute(key, options.attributes[key]);\n });\n\n if (typeof options.insert === 'function') {\n options.insert(style);\n } else {\n var target = getTarget(options.insert || 'head');\n\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n\n target.appendChild(style);\n }\n\n return style;\n}\n\nfunction removeStyleElement(style) {\n // istanbul ignore if\n if (style.parentNode === null) {\n return false;\n }\n\n style.parentNode.removeChild(style);\n}\n/* istanbul ignore next */\n\n\nvar replaceText = function replaceText() {\n var textStore = [];\n return function replace(index, replacement) {\n textStore[index] = replacement;\n return textStore.filter(Boolean).join('\\n');\n };\n}();\n\nfunction applyToSingletonTag(style, index, remove, obj) {\n var css = remove ? '' : obj.css; // For old IE\n\n /* istanbul ignore if */\n\n if (style.styleSheet) {\n style.styleSheet.cssText = replaceText(index, css);\n } else {\n var cssNode = document.createTextNode(css);\n var childNodes = style.childNodes;\n\n if (childNodes[index]) {\n style.removeChild(childNodes[index]);\n }\n\n if (childNodes.length) {\n style.insertBefore(cssNode, childNodes[index]);\n } else {\n style.appendChild(cssNode);\n }\n }\n}\n\nfunction applyToTag(style, options, obj) {\n var css = obj.css;\n var media = obj.media;\n var sourceMap = obj.sourceMap;\n\n if (media) {\n style.setAttribute('media', media);\n }\n\n if (sourceMap && btoa) {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n } // For old IE\n\n /* istanbul ignore if */\n\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n while (style.firstChild) {\n style.removeChild(style.firstChild);\n }\n\n style.appendChild(document.createTextNode(css));\n }\n}\n\nvar singleton = null;\nvar singletonCounter = 0;\n\nfunction addStyle(obj, options) {\n var style;\n var update;\n var remove;\n\n if (options.singleton) {\n var styleIndex = singletonCounter++;\n style = singleton || (singleton = insertStyleElement(options));\n update = applyToSingletonTag.bind(null, style, styleIndex, false);\n remove = applyToSingletonTag.bind(null, style, styleIndex, true);\n } else {\n style = insertStyleElement(options);\n update = applyToTag.bind(null, style, options);\n\n remove = function remove() {\n removeStyleElement(style);\n };\n }\n\n update(obj);\n return function updateStyle(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {\n return;\n }\n\n update(obj = newObj);\n } else {\n remove();\n }\n };\n}\n\nmodule.exports = function (list, options) {\n options = options || {};\n options.attributes = typeof options.attributes === 'object' ? options.attributes : {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\n // tags it will allow on a page\n\n if (!options.singleton && typeof options.singleton !== 'boolean') {\n options.singleton = isOldIE();\n }\n\n var styles = listToStyles(list, options);\n addStylesToDom(styles, options);\n return function update(newList) {\n var mayRemove = [];\n\n for (var i = 0; i < styles.length; i++) {\n var item = styles[i];\n var domStyle = stylesInDom[item.id];\n\n if (domStyle) {\n domStyle.refs--;\n mayRemove.push(domStyle);\n }\n }\n\n if (newList) {\n var newStyles = listToStyles(newList, options);\n addStylesToDom(newStyles, options);\n }\n\n for (var _i = 0; _i < mayRemove.length; _i++) {\n var _domStyle = mayRemove[_i];\n\n if (_domStyle.refs === 0) {\n for (var j = 0; j < _domStyle.parts.length; j++) {\n _domStyle.parts[j]();\n }\n\n delete stylesInDom[_domStyle.id];\n }\n }\n };\n};\n\n//# sourceURL=webpack://striveneditor/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js?");
+
+/***/ }),
+
/***/ "./src/index.js":
/*!**********************!*\
!*** ./src/index.js ***!
@@ -103,7 +138,18 @@ return /******/ (function(modules) { // webpackBootstrap
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
-eval("var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {\n if (true) {\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports, !(function webpackMissingModule() { var e = new Error(\"Cannot find module './striveneditor.css'\"); e.code = 'MODULE_NOT_FOUND'; throw e; }()), __webpack_require__(/*! ./striveneditor */ \"./src/striveneditor.js\")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n } else { var mod; }\n})(this, function (_exports, _striveneditor, _striveneditor2) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"StrivenEditor\", {\n enumerable: true,\n get: function get() {\n return _striveneditor2[\"default\"];\n }\n });\n _striveneditor2 = _interopRequireDefault(_striveneditor2);\n\n function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n});\n\n//# sourceURL=webpack://striveneditor/./src/index.js?");
+eval("var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {\n if (true) {\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports, __webpack_require__(/*! ./striveneditor.css */ \"./src/striveneditor.css\"), __webpack_require__(/*! ./striveneditor */ \"./src/striveneditor.js\")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n } else { var mod; }\n})(this, function (_exports, _striveneditor, _striveneditor2) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"StrivenEditor\", {\n enumerable: true,\n get: function get() {\n return _striveneditor2[\"default\"];\n }\n });\n _striveneditor2 = _interopRequireDefault(_striveneditor2);\n\n function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n});\n\n//# sourceURL=webpack://striveneditor/./src/index.js?");
+
+/***/ }),
+
+/***/ "./src/striveneditor.css":
+/*!*******************************!*\
+ !*** ./src/striveneditor.css ***!
+ \*******************************/
+/*! no static exports found */
+/***/ (function(module, exports, __webpack_require__) {
+
+eval("var content = __webpack_require__(/*! !../node_modules/css-loader/dist/cjs.js!./striveneditor.css */ \"./node_modules/css-loader/dist/cjs.js!./src/striveneditor.css\");\n\nif (typeof content === 'string') {\n content = [[module.i, content, '']];\n}\n\nvar options = {}\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = __webpack_require__(/*! ../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ \"./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\")(content, options);\n\nif (content.locals) {\n module.exports = content.locals;\n}\n\n\n//# sourceURL=webpack://striveneditor/./src/striveneditor.css?");
/***/ }),
diff --git a/webpack.config.js b/webpack.config.js
@@ -25,12 +25,12 @@ module.exports = {
plugins: ['@babel/plugin-transform-modules-umd']
}
}
- },
- // add .css loader
- {
- test: /\.css$/i,
- use: ['style-loader', 'css-loader'],
- }
+ },
+ // add .css loader
+ {
+ test: /\.css$/i,
+ use: ['style-loader', 'css-loader'],
+ }
]
},
optimization: {