Advertisement
loloof64

Nativescript tailwindcss issue

Aug 2nd, 2022
1,286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 10.99 KB | None | 0 0
  1. [@nativescript/webpack] Info:
  2.  {
  3.   mode: 'development',
  4.   externals: [
  5.     'package.json',
  6.     '~/package.json'
  7.   ],
  8.   externalsPresets: {
  9.     node: false
  10.   },
  11.   devtool: 'inline-source-map',
  12.   target: 'node',
  13.   watchOptions: {
  14.     ignored: [
  15.       '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/platforms/**',
  16.       '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/tools/assets/App_Resources/**'
  17.     ]
  18.   },
  19.   ignoreWarnings: [
  20.     /System.import\(\) is deprecated/
  21.   ],
  22.   output: {
  23.     path: '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/platforms/android/app/src/main/assets/app',
  24.     pathinfo: false,
  25.     publicPath: '',
  26.     libraryTarget: 'commonjs',
  27.     globalObject: 'global',
  28.     clean: true
  29.   },
  30.   resolve: {
  31.     symlinks: true,
  32.     alias: {
  33.       '~': '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/src',
  34.       '@': '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/src',
  35.       '@demo/shared': '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/tools/demo'
  36.     },
  37.     extensions: [
  38.       '.android.ts',
  39.       '.ts',
  40.       '.android.js',
  41.       '.js',
  42.       '.android.mjs',
  43.       '.mjs',
  44.       '.android.css',
  45.       '.css',
  46.       '.android.scss',
  47.       '.scss',
  48.       '.android.json',
  49.       '.json'
  50.     ],
  51.     modules: [
  52.       '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/node_modules',
  53.       'node_modules'
  54.     ]
  55.   },
  56.   resolveLoader: {
  57.     modules: [
  58.       '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/node_modules/@nativescript/webpack/dist/loaders',
  59.       '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/node_modules/@nativescript/webpack/node_modules',
  60.       '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/node_modules',
  61.       'node_modules'
  62.     ]
  63.   },
  64.   module: {
  65.     rules: [
  66.       /* config.module.rule('bundle') */
  67.       {
  68.         enforce: 'post',
  69.         test: '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/src/app.ts',
  70.         use: [
  71.           /* config.module.rule('bundle').use('app-css-loader') */
  72.           {
  73.             loader: 'app-css-loader',
  74.             options: {
  75.               platform: 'android'
  76.             }
  77.           },
  78.           /* config.module.rule('bundle').use('nativescript-hot-loader') */
  79.           {
  80.             loader: 'nativescript-hot-loader',
  81.             options: {
  82.               injectHMRRuntime: true
  83.             }
  84.           }
  85.         ]
  86.       },
  87.       /* config.module.rule('workers') */
  88.       {
  89.         test: /\.(mjs|js|ts)$/,
  90.         use: [
  91.           /* config.module.rule('workers').use('nativescript-worker-loader') */
  92.           {
  93.             loader: 'nativescript-worker-loader'
  94.           }
  95.         ]
  96.       },
  97.       /* config.module.rule('hmr-core') */
  98.       {
  99.         test: /\.(js|ts)$/,
  100.         exclude: [
  101.           /node_modules/,
  102.           '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/src/app.ts'
  103.         ],
  104.         use: [
  105.           /* config.module.rule('hmr-core').use('nativescript-hot-loader') */
  106.           {
  107.             loader: 'nativescript-hot-loader',
  108.             options: {
  109.               appPath: '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/src'
  110.             }
  111.           }
  112.         ]
  113.       },
  114.       /* config.module.rule('ts') */
  115.       {
  116.         test: [
  117.           /\.ts$/
  118.         ],
  119.         use: [
  120.           /* config.module.rule('ts').use('ts-loader') */
  121.           {
  122.             loader: 'ts-loader',
  123.             options: {
  124.               transpileOnly: true,
  125.               allowTsInNodeModules: true,
  126.               compilerOptions: {
  127.                 sourceMap: true,
  128.                 declaration: false
  129.               },
  130.               getCustomTransformers: function () { /* omitted long function */ }
  131.             }
  132.           }
  133.         ]
  134.       },
  135.       /* config.module.rule('js') */
  136.       {
  137.         test: /\.js$/,
  138.         exclude: [
  139.           /node_modules/
  140.         ]
  141.       },
  142.       /* config.module.rule('xml') */
  143.       {
  144.         test: /\.xml$/,
  145.         use: [
  146.           /* config.module.rule('xml').use('xml-namespace-loader') */
  147.           {
  148.             loader: 'xml-namespace-loader'
  149.           }
  150.         ]
  151.       },
  152.       /* config.module.rule('css') */
  153.       {
  154.         test: /\.css$/,
  155.         use: [
  156.           /* config.module.rule('css').use('apply-css-loader') */
  157.           {
  158.             loader: 'apply-css-loader'
  159.           },
  160.           /* config.module.rule('css').use('css2json-loader') */
  161.           {
  162.             loader: 'css2json-loader'
  163.           },
  164.           /* config.module.rule('css').use('postcss-loader') */
  165.           {
  166.             loader: 'postcss-loader',
  167.             options: {
  168.               postcssOptions: {
  169.                 plugins: [
  170.                   [
  171.                     'postcss-import',
  172.                     {
  173.                       resolve: function () { /* omitted long function */ }
  174.                     }
  175.                   ],
  176.                   'tailwindcss',
  177.                   '@nativescript/tailwind'
  178.                 ]
  179.               }
  180.             }
  181.           }
  182.         ]
  183.       },
  184.       /* config.module.rule('scss') */
  185.       {
  186.         test: /\.scss$/,
  187.         use: [
  188.           /* config.module.rule('scss').use('apply-css-loader') */
  189.           {
  190.             loader: 'apply-css-loader'
  191.           },
  192.           /* config.module.rule('scss').use('css2json-loader') */
  193.           {
  194.             loader: 'css2json-loader'
  195.           },
  196.           /* config.module.rule('scss').use('postcss-loader') */
  197.           {
  198.             loader: 'postcss-loader',
  199.             options: {
  200.               postcssOptions: {
  201.                 plugins: [
  202.                   [
  203.                     'postcss-import',
  204.                     {
  205.                       resolve: function () { /* omitted long function */ }
  206.                     }
  207.                   ],
  208.                   'tailwindcss',
  209.                   '@nativescript/tailwind'
  210.                 ]
  211.               }
  212.             }
  213.           },
  214.           /* config.module.rule('scss').use('sass-loader') */
  215.           {
  216.             loader: 'sass-loader'
  217.           }
  218.         ]
  219.       }
  220.     ]
  221.   },
  222.   optimization: {
  223.     runtimeChunk: 'single',
  224.     splitChunks: {
  225.       cacheGroups: {
  226.         defaultVendor: {
  227.           test: /[\\/]node_modules[\\/]/,
  228.           priority: -10,
  229.           name: 'vendor',
  230.           chunks: 'all'
  231.         }
  232.       }
  233.     },
  234.     minimizer: [
  235.       /* config.optimization.minimizer('TerserPlugin') */
  236.       new TerserPlugin(
  237.         {
  238.           terserOptions: {
  239.             compress: {
  240.               collapse_vars: false,
  241.               sequences: false,
  242.               keep_infinity: true,
  243.               drop_console: false,
  244.               global_defs: {
  245.                 __UGLIFIED__: true
  246.               }
  247.             },
  248.             keep_fnames: true,
  249.             keep_classnames: true
  250.           }
  251.         }
  252.       )
  253.     ]
  254.   },
  255.   plugins: [
  256.     /* config.plugin('PlatformSuffixPlugin') */
  257.     new PlatformSuffixPlugin(
  258.       {
  259.         platform: 'android'
  260.       }
  261.     ),
  262.     /* config.plugin('ContextExclusionPlugin|App_Resources') */
  263.     new ContextExclusionPlugin(
  264.       /(.*)App_Resources(.*)/
  265.     ),
  266.     /* config.plugin('ContextExclusionPlugin|Other_Platforms') */
  267.     new ContextExclusionPlugin(
  268.       /\.(ios)\.(\w+)$/
  269.     ),
  270.     /* config.plugin('DefinePlugin') */
  271.     new DefinePlugin(
  272.       {
  273.         __DEV__: true,
  274.         __NS_WEBPACK__: true,
  275.         __NS_ENV_VERBOSE__: true,
  276.         __NS_DEV_HOST_IPS__: '["127.0.0.1","192.168.1.209"]',
  277.         __CSS_PARSER__: '"css-tree"',
  278.         __UI_USE_XML_PARSER__: true,
  279.         __UI_USE_EXTERNAL_RENDERER__: false,
  280.         __ANDROID__: true,
  281.         __IOS__: false,
  282.         'global.isAndroid': true,
  283.         'global.isIOS': false,
  284.         process: 'global.process',
  285.         __USE_TEST_ID__: false
  286.       }
  287.     ),
  288.     /* config.plugin('CopyWebpackPlugin') */
  289.     new CopyPlugin(
  290.       {
  291.         patterns: [
  292.           {
  293.             from: 'assets/**',
  294.             context: '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/src',
  295.             noErrorOnMissing: true,
  296.             globOptions: {
  297.               dot: false,
  298.               ignore: [
  299.                 '**/App_Resources/**'
  300.               ]
  301.             }
  302.           },
  303.           {
  304.             from: 'fonts/**',
  305.             context: '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/src',
  306.             noErrorOnMissing: true,
  307.             globOptions: {
  308.               dot: false,
  309.               ignore: [
  310.                 '**/App_Resources/**'
  311.               ]
  312.             }
  313.           },
  314.           {
  315.             from: '**/*.+(jpg|png)',
  316.             context: '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/src',
  317.             noErrorOnMissing: true,
  318.             globOptions: {
  319.               dot: false,
  320.               ignore: [
  321.                 '**/App_Resources/**'
  322.               ]
  323.             }
  324.           }
  325.         ]
  326.       }
  327.     ),
  328.     /* config.plugin('WatchStatePlugin') */
  329.     new WatchStatePlugin(),
  330.     /* config.plugin('HotModuleReplacementPlugin') */
  331.     new HotModuleReplacementPlugin(),
  332.     /* config.plugin('ContextExclusionPlugin|__@nativescript_webpack_virtual_entry_typescript__') */
  333.     new ContextExclusionPlugin(
  334.       /__@nativescript_webpack_virtual_entry_typescript__.js$/
  335.     ),
  336.     /* config.plugin('VirtualModulesPlugin') */
  337.     new VirtualModulesPlugin(
  338.       {
  339.         '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/src/__@nativescript_webpack_virtual_entry_typescript__': '// VIRTUAL ENTRY START\nrequire(\'@nativescript/core/bundle-entry-points\')\nconst context = require.context("~/", /* deep: */ true, /* filter: */ /\\.(xml|js|(?<!\\.d\\.)ts|s?css)$/);\nglobal.registerWebpackModules(context);\n// VIRTUAL ENTRY END'
  340.      }
  341.    ),
  342.    /* config.plugin('ContextExclusionPlugin|exclude_files') */
  343.    new ContextExclusionPlugin(
  344.      /\b_.+\./
  345.    )
  346.  ],
  347.  entry: {
  348.    bundle: [
  349.      '@nativescript/core/globals/index',
  350.      '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/src/__@nativescript_webpack_virtual_entry_typescript__',
  351.      '@nativescript/core/bundle-entry-points',
  352.      '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/src/app.ts',
  353.      '@nativescript/core/ui/frame',
  354.      '@nativescript/core/ui/frame/activity'
  355.    ]
  356.  }
  357. }
  358.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement