Ignore:
Timestamp:
11/25/21 22:08:24 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
8d391a1
Parents:
59329aa
Message:

primeNG components

Location:
trip-planner-front/node_modules/mini-css-extract-plugin
Files:
33 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/node_modules/mini-css-extract-plugin/README.md

    r59329aa re29cc2e  
    7272```
    7373
     74> ⚠️ Note that if you import CSS from your webpack entrypoint or import styles in the [initial](https://webpack.js.org/concepts/under-the-hood/#chunks) chunk, `mini-css-extract-plugin` will not load this CSS into the page. Please use [`html-webpack-plugin`](https://github.com/jantimon/html-webpack-plugin) for automatic generation `link` tags or create `index.html` file with `link` tag.
     75
     76> ⚠️ Source maps works only for `source-map`/`nosources-source-map`/`hidden-nosources-source-map`/`hidden-source-map` values because CSS only supports source maps with the `sourceMappingURL` comment (i.e. `//# sourceMappingURL=style.css.map`). If you need set `devtool` to another value you can enable source maps generation for extracted CSS using [`sourceMap: true`](https://github.com/webpack-contrib/css-loader#sourcemap) for `css-loader`.
     77
    7478## Options
    7579
    7680### Plugin Options
    7781
    78 |                               Name                                |         Type         |                Default                | Description                                                                   |
    79 | :---------------------------------------------------------------: | :------------------: | :-----------------------------------: | :---------------------------------------------------------------------------- |
    80 |                    **[`filename`](#filename)**                    | `{String\|Function}` |             `[name].css`              | This option determines the name of each output CSS file                       |
    81 |               **[`chunkFilename`](#chunkFilename)**               | `{String\|Function}` |          `based on filename`          | This option determines the name of non-entry chunk files                      |
    82 |                 **[`ignoreOrder`](#ignoreOrder)**                 |     `{Boolean}`      |                `false`                | Remove Order Warnings                                                         |
    83 |                      **[`insert`](#insert)**                      | `{String\|Function}` | `document.head.appendChild(linkTag);` | Inserts `<link>` at the given position                                        |
    84 |                  **[`attributes`](#attributes)**                  |      `{Object}`      |                 `{}`                  | Adds custom attributes to tag                                                 |
    85 |                    **[`linkType`](#linkType)**                    | `{String\|Boolean}`  |              `text/css`               | Allows loading asynchronous chunks with a custom link type                    |
    86 | **[`experimentalUseImportModule`](#experimentalUseImportModule)** |     `{Boolean}`      |                `false`                | Use an experimental webpack API to execute modules instead of child compilers |
     82|                               Name                                |         Type         |                Default                | Description                                                                                                                               |
     83| :---------------------------------------------------------------: | :------------------: | :-----------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------- |
     84|                    **[`filename`](#filename)**                    | `{String\|Function}` |             `[name].css`              | This option determines the name of each output CSS file                                                                                   |
     85|               **[`chunkFilename`](#chunkFilename)**               | `{String\|Function}` |          `based on filename`          | This option determines the name of non-entry chunk files                                                                                  |
     86|                 **[`ignoreOrder`](#ignoreOrder)**                 |     `{Boolean}`      |                `false`                | Remove Order Warnings                                                                                                                     |
     87|                      **[`insert`](#insert)**                      | `{String\|Function}` | `document.head.appendChild(linkTag);` | Inserts the `link` tag at the given position for [non-initial (async)](https://webpack.js.org/concepts/under-the-hood/#chunks) CSS chunks |
     88|                  **[`attributes`](#attributes)**                  |      `{Object}`      |                 `{}`                  | Adds custom attributes to the `link` tag for [non-initial (async)](https://webpack.js.org/concepts/under-the-hood/#chunks) CSS chunks     |
     89|                    **[`linkType`](#linkType)**                    | `{String\|Boolean}`  |              `text/css`               | Allows loading asynchronous chunks with a custom link type                                                                                |
     90|                     **[`runtime`](#runtime)**                     |     `{Boolean}`      |                `true`                 | Allows to enable/disable the runtime generation                                                                                           |
     91| **[`experimentalUseImportModule`](#experimentalUseImportModule)** |     `{Boolean}`      |              `undefined`              | Use an experimental webpack API to execute modules instead of child compilers                                                             |
    8792
    8893#### `filename`
     
    118123Type: `String|Function`
    119124Default: `document.head.appendChild(linkTag);`
     125
     126> ⚠️ Only for [non-initial (async)](https://webpack.js.org/concepts/under-the-hood/#chunks) chunks.
    120127
    121128By default, the `mini-css-extract-plugin` appends styles (`<link>` elements) to `document.head` of the current `window`.
     
    170177Default: `{}`
    171178
     179> ⚠️ Only for [non-initial (async)](https://webpack.js.org/concepts/under-the-hood/#chunks) chunks.
     180
    172181If defined, the `mini-css-extract-plugin` will attach given attributes with their values on `<link>` element.
    173182
     
    258267```
    259268
     269#### `runtime`
     270
     271Type: `Boolean`
     272Default: `true`
     273
     274Allows to enable/disable the runtime generation.
     275CSS will be still extracted and can be used for a custom loading methods.
     276For example, you can use [assets-webpack-plugin](https://github.com/ztoben/assets-webpack-plugin) to retreive them then use your own runtime code to download assets when needed.
     277
     278`true` to skip.
     279
     280**webpack.config.js**
     281
     282```js
     283const MiniCssExtractPlugin = require("mini-css-extract-plugin");
     284
     285module.exports = {
     286  plugins: [
     287    new MiniCssExtractPlugin({
     288      runtime: false,
     289    }),
     290  ],
     291  module: {
     292    rules: [
     293      {
     294        test: /\.css$/i,
     295        use: [MiniCssExtractPlugin.loader, "css-loader"],
     296      },
     297    ],
     298  },
     299};
     300```
     301
    260302#### `experimentalUseImportModule`
    261303
    262 Use an experimental webpack API to execute modules instead of child compilers.
    263 
    264 This improves performance and memory usage a lot, but isn't as stable as the normal approach.
     304Type: `Boolean`
     305Default: `undefined`
     306
     307Enabled by default if not explicitly enabled (i.e. `true` and `false` allow you to explicitly control this option) and new API is available (at least webpack `5.52.0` is required).
     308Boolean values are available since version `5.33.2`, but you need to enable `experiments.executeModule` (not required from webpack `5.52.0`).
     309
     310Use a new webpack API to execute modules instead of child compilers.
     311This improves performance and memory usage a lot.
    265312
    266313When combined with `experiments.layers`, this adds a `layer` option to the loader options to specify the layer of the css execution.
    267314
    268 You need to have at least webpack 5.33.2.
    269 
    270 **webpack.config.js**
    271 
    272 ```js
    273 const MiniCssExtractPlugin = require("mini-css-extract-plugin");
    274 
    275 module.exports = {
    276   plugins: [
    277     new MiniCssExtractPlugin({
     315**webpack.config.js**
     316
     317```js
     318const MiniCssExtractPlugin = require("mini-css-extract-plugin");
     319
     320module.exports = {
     321  plugins: [
     322    new MiniCssExtractPlugin({
     323      // You don't need this for `>= 5.52.0` due to the fact that this is enabled by default
     324      // Required only for `>= 5.33.2 & <= 5.52.0`
     325      // Not avaliable/unsafe for `<= 5.33.2`
    278326      experimentalUseImportModule: true,
    279327    }),
     
    754802          name: "styles",
    755803          type: "css/mini-extract",
    756           // For webpack@4
    757           // test: /\.css$/,
    758804          chunks: "all",
    759805          enforce: true,
     
    789835const path = require("path");
    790836const MiniCssExtractPlugin = require("mini-css-extract-plugin");
    791 
    792 function recursiveIssuer(m, c) {
    793   const issuer = c.moduleGraph.getIssuer(m);
    794   // For webpack@4 issuer = m.issuer
    795 
    796   if (issuer) {
    797     return recursiveIssuer(issuer, c);
    798   }
    799 
    800   const chunks = c.chunkGraph.getModuleChunks(m);
    801   // For webpack@4 chunks = m._chunks
    802 
    803   for (const chunk of chunks) {
    804     return chunk.name;
    805   }
    806 
    807   return false;
    808 }
    809837
    810838module.exports = {
     
    817845      cacheGroups: {
    818846        fooStyles: {
     847          type: "css/mini-extract",
    819848          name: "styles_foo",
    820           test: (m, c, entry = "foo") =>
    821             m.constructor.name === "CssModule" &&
    822             recursiveIssuer(m, c) === entry,
    823           chunks: "all",
     849          chunks: (chunk) => {
     850            return chunk.name === "foo";
     851          },
    824852          enforce: true,
    825853        },
    826854        barStyles: {
     855          type: "css/mini-extract",
    827856          name: "styles_bar",
    828           test: (m, c, entry = "bar") =>
    829             m.constructor.name === "CssModule" &&
    830             recursiveIssuer(m, c) === entry,
    831           chunks: "all",
     857          chunks: (chunk) => {
     858            return chunk.name === "bar";
     859          },
    832860          enforce: true,
    833861        },
     
    930958  },
    931959};
     960```
     961
     962### Multiple Themes
     963
     964**webpack.config.js**
     965
     966```js
     967const MiniCssExtractPlugin = require("mini-css-extract-plugin");
     968
     969module.exports = {
     970  entry: "./src/index.js",
     971  module: {
     972    rules: [
     973      {
     974        test: /\.s[ac]ss$/i,
     975        oneOf: [
     976          {
     977            resourceQuery: "?dark",
     978            use: [
     979              Self.loader,
     980              "css-loader",
     981              {
     982                loader: "sass-loader",
     983                options: {
     984                  additionalData: `@use 'dark-theme/vars' as vars;`,
     985                },
     986              },
     987            ],
     988          },
     989          {
     990            use: [
     991              Self.loader,
     992              "css-loader",
     993              {
     994                loader: "sass-loader",
     995                options: {
     996                  additionalData: `@use 'light-theme/vars' as vars;`,
     997                },
     998              },
     999            ],
     1000          },
     1001        ],
     1002      },
     1003    ],
     1004  },
     1005  plugins: [
     1006    new Self({
     1007      filename: "[name].css",
     1008      attributes: {
     1009        id: "theme",
     1010      },
     1011    }),
     1012  ],
     1013};
     1014```
     1015
     1016**src/index.js**
     1017
     1018```js
     1019import "./style.scss";
     1020
     1021let theme = "light";
     1022const themes = {};
     1023
     1024themes[theme] = document.querySelector("#theme");
     1025
     1026async function loadTheme(newTheme) {
     1027  // eslint-disable-next-line no-console
     1028  console.log(`CHANGE THEME - ${newTheme}`);
     1029
     1030  const themeElement = document.querySelector("#theme");
     1031
     1032  if (themeElement) {
     1033    themeElement.remove();
     1034  }
     1035
     1036  if (themes[newTheme]) {
     1037    // eslint-disable-next-line no-console
     1038    console.log(`THEME ALREADY LOADED - ${newTheme}`);
     1039
     1040    document.head.appendChild(themes[newTheme]);
     1041
     1042    return;
     1043  }
     1044
     1045  if (newTheme === "dark") {
     1046    // eslint-disable-next-line no-console
     1047    console.log(`LOADING THEME - ${newTheme}`);
     1048
     1049    import(/* webpackChunkName: "dark" */ "./style.scss?dark").then(() => {
     1050      themes[newTheme] = document.querySelector("#theme");
     1051
     1052      // eslint-disable-next-line no-console
     1053      console.log(`LOADED - ${newTheme}`);
     1054    });
     1055  }
     1056}
     1057
     1058document.onclick = () => {
     1059  if (theme === "light") {
     1060    theme = "dark";
     1061  } else {
     1062    theme = "light";
     1063  }
     1064
     1065  loadTheme(theme);
     1066};
     1067```
     1068
     1069**src/dark-theme/\_vars.scss**
     1070
     1071```scss
     1072$background: black;
     1073```
     1074
     1075**src/light-theme/\_vars.scss**
     1076
     1077```scss
     1078$background: white;
     1079```
     1080
     1081**src/styles.scss**
     1082
     1083```scss
     1084body {
     1085  background-color: vars.$background;
     1086}
     1087```
     1088
     1089**public/index.html**
     1090
     1091```html
     1092<!DOCTYPE html>
     1093<html lang="en">
     1094  <head>
     1095    <meta charset="UTF-8" />
     1096    <meta name="viewport" content="width=device-width, initial-scale=1" />
     1097    <title>Document</title>
     1098    <link id="theme" rel="stylesheet" type="text/css" href="./main.css" />
     1099  </head>
     1100  <body>
     1101    <script src="./main.js"></script>
     1102  </body>
     1103</html>
    9321104```
    9331105
  • trip-planner-front/node_modules/mini-css-extract-plugin/dist/index.js

    r59329aa re29cc2e  
    77
    88var _schemaUtils = require("schema-utils");
    9 
    10 var _identifier = require("webpack/lib/util/identifier");
    119
    1210var _pluginOptions = _interopRequireDefault(require("./plugin-options.json"));
     
    5452        identifierIndex,
    5553        content,
     54        layer,
     55        supports,
    5656        media,
    5757        sourceMap,
     
    6565        this._identifierIndex = identifierIndex;
    6666        this.content = content;
     67        this.layer = layer;
     68        this.supports = supports;
    6769        this.media = media;
    6870        this.sourceMap = sourceMap;
     
    108110
    109111      updateCacheModule(module) {
    110         if (this.content !== module.content || this.media !== module.media || this.sourceMap !== module.sourceMap || this.assets !== module.assets || this.assetsInfo !== module.assetsInfo) {
     112        if (this.content !== module.content || this.layer !== module.layer || this.supports !== module.supports || this.media !== module.media || this.sourceMap !== module.sourceMap || this.assets !== module.assets || this.assetsInfo !== module.assetsInfo) {
    111113          this._needBuild = true;
    112114          this.content = module.content;
     115          this.layer = module.layer;
     116          this.supports = module.supports;
    113117          this.media = module.media;
    114118          this.sourceMap = module.sourceMap;
     
    143147        const hash = webpack.util.createHash(hashFunction);
    144148        hash.update(this.content);
     149
     150        if (this.layer) {
     151          hash.update(this.layer);
     152        }
     153
     154        hash.update(this.supports || "");
    145155        hash.update(this.media || "");
    146156        hash.update(this.sourceMap || "");
     
    161171        write(this._identifierIndex);
    162172        write(this.content);
     173        write(this.layer);
     174        write(this.supports);
    163175        write(this.media);
    164176        write(this.sourceMap);
     
    190202        const identifierIndex = read();
    191203        const content = read();
     204        const layer = read();
     205        const supports = read();
    192206        const media = read();
    193207        const sourceMap = read();
     
    199213          identifierIndex,
    200214          content,
     215          layer,
     216          supports,
    201217          media,
    202218          sourceMap,
     
    225241        identifier,
    226242        content,
     243        layer,
     244        supports,
    227245        media,
    228246        sourceMap
     
    232250        this.identifierIndex = identifierIndex;
    233251        this.content = content;
     252        this.layer = layer;
     253        this.supports = supports;
    234254        this.media = media;
    235255        this.sourceMap = sourceMap;
     
    256276        write(this.identifier);
    257277        write(this.content);
     278        write(this.layer);
     279        write(this.supports);
    258280        write(this.media);
    259281        write(this.sourceMap);
     
    284306          identifier: read(),
    285307          content: read(),
     308          layer: read(),
     309          supports: read(),
    286310          media: read(),
    287311          sourceMap: read()
     
    307331      filename: DEFAULT_FILENAME,
    308332      ignoreOrder: false,
    309       experimentalUseImportModule: false
     333      // TODO remove in the next major release
     334      // eslint-disable-next-line no-undefined
     335      experimentalUseImportModule: undefined,
     336      runtime: true
    310337    }, options);
    311338    this.runtimeOptions = {
     
    347374
    348375    if (this.options.experimentalUseImportModule) {
    349       if (!compiler.options.experiments) {
    350         throw new Error("experimentalUseImportModule is only support for webpack >= 5.33.2");
    351       }
    352 
    353376      if (typeof compiler.options.experiments.executeModule === "undefined") {
    354377        // eslint-disable-next-line no-param-reassign
     
    469492          chunk.contentHash[_utils.MODULE_TYPE] = hash.digest(hashDigest).substring(0, hashDigestLength);
    470493        }
    471       });
     494      }); // All the code below is dedicated to the runtime and can be skipped when the `runtime` option is `false`
     495
     496      if (!this.options.runtime) {
     497        return;
     498      }
     499
    472500      const {
    473         Template
    474       } = webpack;
    475       const {
     501        Template,
    476502        RuntimeGlobals,
     503        RuntimeModule,
    477504        runtime
    478505      } = webpack; // eslint-disable-next-line no-shadow
     
    497524        return obj;
    498525      };
    499 
    500       const {
    501         RuntimeModule
    502       } = webpack;
    503526
    504527      class CssLoadingRuntimeModule extends RuntimeModule {
     
    715738        }
    716739
     740        if (module.supports) {
     741          source.add(`@supports (${module.supports}) {\n`);
     742        }
     743
    717744        if (module.media) {
    718745          source.add(`@media ${module.media} {\n`);
    719746        }
    720747
     748        const needLayer = typeof module.layer !== "undefined";
     749
     750        if (needLayer) {
     751          source.add(`@layer${module.layer.length > 0 ? ` ${module.layer}` : ""} {\n`);
     752        }
     753
    721754        const {
    722755          path: filename
    723756        } = compilation.getPathWithInfo(filenameTemplate, pathData);
    724         const undoPath = (0, _identifier.getUndoPath)(filename, compiler.outputPath, false);
     757        const undoPath = (0, _utils.getUndoPath)(filename, compiler.outputPath, false);
     758        content = content.replace(new RegExp(_utils.ABSOLUTE_PUBLIC_PATH, "g"), "");
     759        content = content.replace(new RegExp(_utils.SINGLE_DOT_PATH_SEGMENT, "g"), ".");
    725760        content = content.replace(new RegExp(_utils.AUTO_PUBLIC_PATH, "g"), undoPath);
    726761
     
    733768        source.add("\n");
    734769
     770        if (needLayer) {
     771          source.add("}\n");
     772        }
     773
    735774        if (module.media) {
     775          source.add("}\n");
     776        }
     777
     778        if (module.supports) {
    736779          source.add("}\n");
    737780        }
  • trip-planner-front/node_modules/mini-css-extract-plugin/dist/loader.js

    r59329aa re29cc2e  
    8888      const exports = originalExports.__esModule ? originalExports.default : originalExports;
    8989      namedExport = // eslint-disable-next-line no-underscore-dangle
    90       originalExports.__esModule && !("locals" in originalExports.default);
     90      originalExports.__esModule && (!originalExports.default || !("locals" in originalExports.default));
    9191
    9292      if (namedExport) {
     
    109109        dependencies = [[null, exports]];
    110110      } else {
    111         dependencies = exports.map(([id, content, media, sourceMap]) => {
     111        dependencies = exports.map(([id, content, media, sourceMap, supports, layer]) => {
    112112          let identifier = id;
    113113          let context;
     
    129129            content: Buffer.from(content),
    130130            media,
     131            supports,
     132            layer,
    131133            sourceMap: sourceMap ? Buffer.from(JSON.stringify(sourceMap)) : // eslint-disable-next-line no-undefined
    132134            undefined
     
    165167  }
    166168
    167   if (optionsFromPlugin.experimentalUseImportModule) {
     169  if (typeof optionsFromPlugin.experimentalUseImportModule === "undefined" && typeof this.importModule === "function" || optionsFromPlugin.experimentalUseImportModule) {
    168170    if (!this.importModule) {
    169       callback(new Error("You are using experimentalUseImportModule but 'this.importModule' is not available in loader context. You need to have at least webpack 5.33.2."));
     171      callback(new Error("You are using 'experimentalUseImportModule' but 'this.importModule' is not available in loader context. You need to have at least webpack 5.33.2."));
    170172      return;
    171173    }
    172174
    173     this.importModule(`${this.resourcePath}.webpack[javascript/auto]!=!${request}`, {
     175    const isAbsolutePublicPath = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/.test(publicPath);
     176    const publicPathForExtract = isAbsolutePublicPath ? publicPath : `${_utils.ABSOLUTE_PUBLIC_PATH}${publicPath.replace(/\./g, _utils.SINGLE_DOT_PATH_SEGMENT)}`;
     177    this.importModule(`${this.resourcePath}.webpack[javascript/auto]!=!!!${request}`, {
    174178      layer: options.layer,
    175       publicPath
    176     }, (err, exports) => {
    177       if (err) {
    178         callback(err);
     179      publicPath: publicPathForExtract
     180    }, (error, exports) => {
     181      if (error) {
     182        callback(error);
    179183        return;
    180184      }
     
    307311
    308312
    309 function _default() {}
     313function _default(content) {
     314  console.log(content);
     315}
  • trip-planner-front/node_modules/mini-css-extract-plugin/dist/plugin-options.json

    r59329aa re29cc2e  
    3939    },
    4040    "insert": {
    41       "description": "Inserts `<link>` at the given position.",
     41      "description": "Inserts the `link` tag at the given position for non-initial (async) (https://webpack.js.org/concepts/under-the-hood/#chunks) CSS chunks.",
    4242      "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#insert",
    4343      "anyOf": [
     
    5151    },
    5252    "attributes": {
    53       "description": "Adds custom attributes to tag.",
     53      "description": "Adds custom attributes to the `link` tag for non-initial (async) (https://webpack.js.org/concepts/under-the-hood/#chunks) CSS chunks.",
    5454      "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#attributes",
    5555      "type": "object"
     
    6666      "description": "This option allows loading asynchronous chunks with a custom link type",
    6767      "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#linktype"
     68    },
     69    "runtime": {
     70      "type": "boolean",
     71      "description": "Enabled/Disables runtime generation. CSS will be still extracted and can be used for a custom loading methods.",
     72      "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#noRuntime"
    6873    }
    6974  }
  • trip-planner-front/node_modules/mini-css-extract-plugin/dist/utils.js

    r59329aa re29cc2e  
    99exports.compareModulesByIdentifier = compareModulesByIdentifier;
    1010exports.stringifyRequest = stringifyRequest;
    11 exports.AUTO_PUBLIC_PATH = exports.MODULE_TYPE = void 0;
     11exports.getUndoPath = getUndoPath;
     12exports.SINGLE_DOT_PATH_SEGMENT = exports.ABSOLUTE_PUBLIC_PATH = exports.AUTO_PUBLIC_PATH = exports.MODULE_TYPE = void 0;
    1213
    1314var _module = _interopRequireDefault(require("module"));
     
    7273const MODULE_TYPE = "css/mini-extract";
    7374exports.MODULE_TYPE = MODULE_TYPE;
    74 const AUTO_PUBLIC_PATH = "__MINI_CSS_EXTRACT_PLUGIN_PUBLIC_PATH__";
     75const AUTO_PUBLIC_PATH = "__mini_css_extract_plugin_public_path_auto__";
    7576exports.AUTO_PUBLIC_PATH = AUTO_PUBLIC_PATH;
     77const ABSOLUTE_PUBLIC_PATH = "webpack:///mini-css-extract-plugin/";
     78exports.ABSOLUTE_PUBLIC_PATH = ABSOLUTE_PUBLIC_PATH;
     79const SINGLE_DOT_PATH_SEGMENT = "__mini_css_extract_plugin_single_dot_path_segment__";
     80exports.SINGLE_DOT_PATH_SEGMENT = SINGLE_DOT_PATH_SEGMENT;
    7681
    7782function isAbsolutePath(str) {
     
    115120  }).join("!"));
    116121}
     122
     123function getUndoPath(filename, outputPath, enforceRelative) {
     124  let depth = -1;
     125  let append = ""; // eslint-disable-next-line no-param-reassign
     126
     127  outputPath = outputPath.replace(/[\\/]$/, "");
     128
     129  for (const part of filename.split(/[/\\]+/)) {
     130    if (part === "..") {
     131      if (depth > -1) {
     132        // eslint-disable-next-line no-plusplus
     133        depth--;
     134      } else {
     135        const i = outputPath.lastIndexOf("/");
     136        const j = outputPath.lastIndexOf("\\");
     137        const pos = i < 0 ? j : j < 0 ? i : Math.max(i, j);
     138
     139        if (pos < 0) {
     140          return `${outputPath}/`;
     141        }
     142
     143        append = `${outputPath.slice(pos + 1)}/${append}`; // eslint-disable-next-line no-param-reassign
     144
     145        outputPath = outputPath.slice(0, pos);
     146      }
     147    } else if (part !== ".") {
     148      // eslint-disable-next-line no-plusplus
     149      depth++;
     150    }
     151  }
     152
     153  return depth > 0 ? `${"../".repeat(depth)}${append}` : enforceRelative ? `./${append}` : append;
     154}
  • trip-planner-front/node_modules/mini-css-extract-plugin/package.json

    r59329aa re29cc2e  
    11{
    2   "_args": [
    3     [
    4       "mini-css-extract-plugin@2.2.1",
    5       "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front"
    6     ]
    7   ],
    8   "_development": true,
    9   "_from": "mini-css-extract-plugin@2.2.1",
    10   "_id": "mini-css-extract-plugin@2.2.1",
     2  "_from": "mini-css-extract-plugin@2.4.2",
     3  "_id": "mini-css-extract-plugin@2.4.2",
    114  "_inBundle": false,
    12   "_integrity": "sha512-A0GBXpz8WIPgh2HfASJ0EeY8grd2dGxmC4R8uTujFJXZY7zFy0nvYSYW6SKCLKlz7y45BdHONfaxZQMIZpeF/w==",
     5  "_integrity": "sha512-ZmqShkn79D36uerdED+9qdo1ZYG8C1YsWvXu0UMJxurZnSdgz7gQKO2EGv8T55MhDqG3DYmGtizZNpM/UbTlcA==",
    136  "_location": "/mini-css-extract-plugin",
    147  "_phantomChildren": {
    158    "@types/json-schema": "7.0.9",
     9    "ajv-keywords": "3.5.2",
    1610    "fast-deep-equal": "3.1.3",
    1711    "fast-json-stable-stringify": "2.1.0",
     
    2115    "type": "version",
    2216    "registry": true,
    23     "raw": "mini-css-extract-plugin@2.2.1",
     17    "raw": "mini-css-extract-plugin@2.4.2",
    2418    "name": "mini-css-extract-plugin",
    2519    "escapedName": "mini-css-extract-plugin",
    26     "rawSpec": "2.2.1",
     20    "rawSpec": "2.4.2",
    2721    "saveSpec": null,
    28     "fetchSpec": "2.2.1"
     22    "fetchSpec": "2.4.2"
    2923  },
    3024  "_requiredBy": [
    3125    "/@angular-devkit/build-angular"
    3226  ],
    33   "_resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.2.1.tgz",
    34   "_spec": "2.2.1",
    35   "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front",
     27  "_resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.4.2.tgz",
     28  "_shasum": "b3508191ea479388a4715018c99dd3e6dd40d2d2",
     29  "_spec": "mini-css-extract-plugin@2.4.2",
     30  "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front\\node_modules\\@angular-devkit\\build-angular",
    3631  "author": {
    3732    "name": "Tobias Koppers @sokra"
     
    4035    "url": "https://github.com/webpack-contrib/mini-css-extract-plugin/issues"
    4136  },
     37  "bundleDependencies": false,
    4238  "dependencies": {
    4339    "schema-utils": "^3.1.0"
    4440  },
     41  "deprecated": false,
    4542  "description": "extracts CSS into separate files",
    4643  "devDependencies": {
     
    5552    "bootstrap": "^4.6.0",
    5653    "cross-env": "^7.0.3",
    57     "css-loader": "^5.2.6",
     54    "css-loader": "^6.2.0",
    5855    "del": "^6.0.0",
    5956    "del-cli": "^4.0.0",
     
    7067    "npm-run-all": "^4.1.5",
    7168    "prettier": "^2.3.2",
     69    "sass": "^1.39.0",
     70    "sass-loader": "^12.1.0",
    7271    "standard-version": "^9.3.0",
    73     "webpack": "^5.48.0",
     72    "webpack": "^5.57.0",
    7473    "webpack-cli": "^4.7.2",
    7574    "webpack-dev-server": "^4.0.0"
     
    123122    "test:watch": "npm run test:only -- --watch"
    124123  },
    125   "version": "2.2.1"
     124  "version": "2.4.2"
    126125}
Note: See TracChangeset for help on using the changeset viewer.