{"library":"webpack-preprocessor-loader","type":"library","category":null,"description":"A Webpack loader that enables conditional compilation in any text-based file. Current stable version is 1.3.0, released with support for nested if conditions, custom directives, verbose mode with escapeComments option, and builds on a rewritten codebase from v1.1.0+ that enhances multiline comment handling. It works as the last loader, processing raw text before other loaders, and supports JavaScript, HTML, CSS, and more. Unlike DefinePlugin, this loader physically removes code blocks based on directives, reducing bundle size. It requires Webpack 4+ and Node >=6.11.5.","language":"javascript","status":"active","version":"1.3.0","tags":["javascript","webpack","loader","preprocessor","preprocess","precompile"],"last_verified":"Wed May 27","install":[{"cmd":"npm install webpack-preprocessor-loader","imports":["import PreprocessorLoader from 'webpack-preprocessor-loader';","const { resolve } = require('path');","const PreprocessorLoader = require('webpack-preprocessor-loader');"]},{"cmd":"yarn add webpack-preprocessor-loader","imports":[]},{"cmd":"pnpm add webpack-preprocessor-loader","imports":[]}],"homepage":null,"github":"https://github.com/afterwind-io/preprocessor-loader","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/webpack-preprocessor-loader","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/webpack-preprocessor-loader/compatibility"}}