Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [@nativescript/webpack] Info:
- {
- mode: 'development',
- externals: [
- 'package.json',
- '~/package.json'
- ],
- externalsPresets: {
- node: false
- },
- devtool: 'inline-source-map',
- target: 'node',
- watchOptions: {
- ignored: [
- '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/platforms/**',
- '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/tools/assets/App_Resources/**'
- ]
- },
- ignoreWarnings: [
- /System.import\(\) is deprecated/
- ],
- output: {
- path: '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/platforms/android/app/src/main/assets/app',
- pathinfo: false,
- publicPath: '',
- libraryTarget: 'commonjs',
- globalObject: 'global',
- clean: true
- },
- resolve: {
- symlinks: true,
- alias: {
- '~': '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/src',
- '@': '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/src',
- '@demo/shared': '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/tools/demo'
- },
- extensions: [
- '.android.ts',
- '.ts',
- '.android.js',
- '.js',
- '.android.mjs',
- '.mjs',
- '.android.css',
- '.css',
- '.android.scss',
- '.scss',
- '.android.json',
- '.json'
- ],
- modules: [
- '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/node_modules',
- 'node_modules'
- ]
- },
- resolveLoader: {
- modules: [
- '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/node_modules/@nativescript/webpack/dist/loaders',
- '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/node_modules/@nativescript/webpack/node_modules',
- '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/node_modules',
- 'node_modules'
- ]
- },
- module: {
- rules: [
- /* config.module.rule('bundle') */
- {
- enforce: 'post',
- test: '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/src/app.ts',
- use: [
- /* config.module.rule('bundle').use('app-css-loader') */
- {
- loader: 'app-css-loader',
- options: {
- platform: 'android'
- }
- },
- /* config.module.rule('bundle').use('nativescript-hot-loader') */
- {
- loader: 'nativescript-hot-loader',
- options: {
- injectHMRRuntime: true
- }
- }
- ]
- },
- /* config.module.rule('workers') */
- {
- test: /\.(mjs|js|ts)$/,
- use: [
- /* config.module.rule('workers').use('nativescript-worker-loader') */
- {
- loader: 'nativescript-worker-loader'
- }
- ]
- },
- /* config.module.rule('hmr-core') */
- {
- test: /\.(js|ts)$/,
- exclude: [
- /node_modules/,
- '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/src/app.ts'
- ],
- use: [
- /* config.module.rule('hmr-core').use('nativescript-hot-loader') */
- {
- loader: 'nativescript-hot-loader',
- options: {
- appPath: '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/src'
- }
- }
- ]
- },
- /* config.module.rule('ts') */
- {
- test: [
- /\.ts$/
- ],
- use: [
- /* config.module.rule('ts').use('ts-loader') */
- {
- loader: 'ts-loader',
- options: {
- transpileOnly: true,
- allowTsInNodeModules: true,
- compilerOptions: {
- sourceMap: true,
- declaration: false
- },
- getCustomTransformers: function () { /* omitted long function */ }
- }
- }
- ]
- },
- /* config.module.rule('js') */
- {
- test: /\.js$/,
- exclude: [
- /node_modules/
- ]
- },
- /* config.module.rule('xml') */
- {
- test: /\.xml$/,
- use: [
- /* config.module.rule('xml').use('xml-namespace-loader') */
- {
- loader: 'xml-namespace-loader'
- }
- ]
- },
- /* config.module.rule('css') */
- {
- test: /\.css$/,
- use: [
- /* config.module.rule('css').use('apply-css-loader') */
- {
- loader: 'apply-css-loader'
- },
- /* config.module.rule('css').use('css2json-loader') */
- {
- loader: 'css2json-loader'
- },
- /* config.module.rule('css').use('postcss-loader') */
- {
- loader: 'postcss-loader',
- options: {
- postcssOptions: {
- plugins: [
- [
- 'postcss-import',
- {
- resolve: function () { /* omitted long function */ }
- }
- ],
- 'tailwindcss',
- '@nativescript/tailwind'
- ]
- }
- }
- }
- ]
- },
- /* config.module.rule('scss') */
- {
- test: /\.scss$/,
- use: [
- /* config.module.rule('scss').use('apply-css-loader') */
- {
- loader: 'apply-css-loader'
- },
- /* config.module.rule('scss').use('css2json-loader') */
- {
- loader: 'css2json-loader'
- },
- /* config.module.rule('scss').use('postcss-loader') */
- {
- loader: 'postcss-loader',
- options: {
- postcssOptions: {
- plugins: [
- [
- 'postcss-import',
- {
- resolve: function () { /* omitted long function */ }
- }
- ],
- 'tailwindcss',
- '@nativescript/tailwind'
- ]
- }
- }
- },
- /* config.module.rule('scss').use('sass-loader') */
- {
- loader: 'sass-loader'
- }
- ]
- }
- ]
- },
- optimization: {
- runtimeChunk: 'single',
- splitChunks: {
- cacheGroups: {
- defaultVendor: {
- test: /[\\/]node_modules[\\/]/,
- priority: -10,
- name: 'vendor',
- chunks: 'all'
- }
- }
- },
- minimizer: [
- /* config.optimization.minimizer('TerserPlugin') */
- new TerserPlugin(
- {
- terserOptions: {
- compress: {
- collapse_vars: false,
- sequences: false,
- keep_infinity: true,
- drop_console: false,
- global_defs: {
- __UGLIFIED__: true
- }
- },
- keep_fnames: true,
- keep_classnames: true
- }
- }
- )
- ]
- },
- plugins: [
- /* config.plugin('PlatformSuffixPlugin') */
- new PlatformSuffixPlugin(
- {
- platform: 'android'
- }
- ),
- /* config.plugin('ContextExclusionPlugin|App_Resources') */
- new ContextExclusionPlugin(
- /(.*)App_Resources(.*)/
- ),
- /* config.plugin('ContextExclusionPlugin|Other_Platforms') */
- new ContextExclusionPlugin(
- /\.(ios)\.(\w+)$/
- ),
- /* config.plugin('DefinePlugin') */
- new DefinePlugin(
- {
- __DEV__: true,
- __NS_WEBPACK__: true,
- __NS_ENV_VERBOSE__: true,
- __NS_DEV_HOST_IPS__: '["127.0.0.1","192.168.1.209"]',
- __CSS_PARSER__: '"css-tree"',
- __UI_USE_XML_PARSER__: true,
- __UI_USE_EXTERNAL_RENDERER__: false,
- __ANDROID__: true,
- __IOS__: false,
- 'global.isAndroid': true,
- 'global.isIOS': false,
- process: 'global.process',
- __USE_TEST_ID__: false
- }
- ),
- /* config.plugin('CopyWebpackPlugin') */
- new CopyPlugin(
- {
- patterns: [
- {
- from: 'assets/**',
- context: '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/src',
- noErrorOnMissing: true,
- globOptions: {
- dot: false,
- ignore: [
- '**/App_Resources/**'
- ]
- }
- },
- {
- from: 'fonts/**',
- context: '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/src',
- noErrorOnMissing: true,
- globOptions: {
- dot: false,
- ignore: [
- '**/App_Resources/**'
- ]
- }
- },
- {
- from: '**/*.+(jpg|png)',
- context: '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/src',
- noErrorOnMissing: true,
- globOptions: {
- dot: false,
- ignore: [
- '**/App_Resources/**'
- ]
- }
- }
- ]
- }
- ),
- /* config.plugin('WatchStatePlugin') */
- new WatchStatePlugin(),
- /* config.plugin('HotModuleReplacementPlugin') */
- new HotModuleReplacementPlugin(),
- /* config.plugin('ContextExclusionPlugin|__@nativescript_webpack_virtual_entry_typescript__') */
- new ContextExclusionPlugin(
- /__@nativescript_webpack_virtual_entry_typescript__.js$/
- ),
- /* config.plugin('VirtualModulesPlugin') */
- new VirtualModulesPlugin(
- {
- '/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'
- }
- ),
- /* config.plugin('ContextExclusionPlugin|exclude_files') */
- new ContextExclusionPlugin(
- /\b_.+\./
- )
- ],
- entry: {
- bundle: [
- '@nativescript/core/globals/index',
- '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/src/__@nativescript_webpack_virtual_entry_typescript__',
- '@nativescript/core/bundle-entry-points',
- '/home/laurent/Documents/Programmation/ProjetsPersos/Nativescript/nativescript-plugins/apps/demo/src/app.ts',
- '@nativescript/core/ui/frame',
- '@nativescript/core/ui/frame/activity'
- ]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement