{"library":"polymer-webpack-loader","title":"polymer-webpack-loader","description":"Webpack loader for Polymer (v3 and above) that processes HTML template elements, minifying HTML and including images, fonts, and imported stylesheets in the webpack dependency graph. Version 3.1.0 is the latest, with an active maintenance status. The loader integrates with webpack 2–4 and supports chaining with babel-loader. Differentiator: enables using Polymer 3 components within a webpack build system, handling HTML imports and template optimizations. Alternative to polymer-build or direct HTML imports, it bridges Polymer's component model with webpack's module bundling.","language":"javascript","status":"maintenance","last_verified":"Sat Apr 25","install":{"commands":["npm install polymer-webpack-loader"],"cli":null},"imports":["import polymerWebpackLoader from 'polymer-webpack-loader'","import { PolymerWebpackLoader } from 'polymer-webpack-loader'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// webpack.config.js\nconst webpack = require('webpack');\n\nmodule.exports = {\n  entry: './src/index.js',\n  output: {\n    filename: 'bundle.js',\n    path: __dirname + '/dist'\n  },\n  module: {\n    rules: [\n      {\n        test: /\\.html$/,\n        use: [\n          { loader: 'polymer-webpack-loader' }\n        ]\n      }\n    ]\n  }\n};","lang":"javascript","description":"Minimal webpack configuration for processing Polymer HTML components with polymer-webpack-loader.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}