diff options
author | 2020-11-18 23:26:45 +0100 | |
---|---|---|
committer | 2020-11-18 23:26:45 +0100 | |
commit | 81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 (patch) | |
tree | 8b959d50c5a614cbf9fcb346ed556140374d4b6d /node_modules/file-loader/dist/index.js | |
parent | 1870f3fdf43707a15fda0f609a021f516f45eb63 (diff) | |
download | website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.gz website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.bz2 website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.zip |
rm node_modules
Diffstat (limited to 'node_modules/file-loader/dist/index.js')
-rw-r--r-- | node_modules/file-loader/dist/index.js | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/node_modules/file-loader/dist/index.js b/node_modules/file-loader/dist/index.js deleted file mode 100644 index 45ecee5..0000000 --- a/node_modules/file-loader/dist/index.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = loader; -exports.raw = void 0; - -var _path = _interopRequireDefault(require("path")); - -var _loaderUtils = _interopRequireDefault(require("loader-utils")); - -var _schemaUtils = _interopRequireDefault(require("schema-utils")); - -var _options = _interopRequireDefault(require("./options.json")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function loader(content) { - const options = _loaderUtils.default.getOptions(this) || {}; - (0, _schemaUtils.default)(_options.default, options, 'File Loader'); - const context = options.context || this.rootContext; - - const url = _loaderUtils.default.interpolateName(this, options.name, { - context, - content, - regExp: options.regExp - }); - - let outputPath = url; - - if (options.outputPath) { - if (typeof options.outputPath === 'function') { - outputPath = options.outputPath(url, this.resourcePath, context); - } else { - outputPath = _path.default.posix.join(options.outputPath, url); - } - } - - let publicPath = `__webpack_public_path__ + ${JSON.stringify(outputPath)}`; - - if (options.publicPath) { - if (typeof options.publicPath === 'function') { - publicPath = options.publicPath(url, this.resourcePath, context); - } else { - publicPath = `${options.publicPath.endsWith('/') ? options.publicPath : `${options.publicPath}/`}${url}`; - } - - publicPath = JSON.stringify(publicPath); - } - - if (typeof options.emitFile === 'undefined' || options.emitFile) { - this.emitFile(outputPath, content); - } // TODO revert to ES2015 Module export, when new CSS Pipeline is in place - - - return `module.exports = ${publicPath};`; -} - -const raw = true; -exports.raw = raw;
\ No newline at end of file |