UNPKG

media-query-splitting-plugin

Version:
1 lines 763 B
"use strict";function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),a}var getOptions=require("./getOptions"),handleApply=require("./handleApply");module.exports=function(){function a(b){_classCallCheck(this,a),this.options=getOptions(b)}return _createClass(a,[{key:"apply",value:function(a){var b=this.options,c=b.media,d=b.minify,e=b.chunkFileName;handleApply({compiler:a,options:{chunkFileName:e,mediaOptions:c,minify:d}})}}]),a}();