├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── TODO.md ├── dynavers.json ├── index.js ├── lib ├── common.js ├── config.js ├── findFile.js ├── insertStyle.js ├── plugin.js ├── removeFile.js └── replaceTag.js ├── package-lock.json ├── package.json └── spec ├── config-spec.js ├── core-spec.js ├── css-reg-exp-spec.js ├── expectations.js ├── fixtures ├── Indie-Flower.woff2 ├── hot-reload │ ├── entry.js │ ├── index.js │ ├── stylesheet1.css │ └── stylesheet2.css ├── html_template.ejs ├── html_template_with_style.ejs ├── index.js ├── nested_stylesheets.js ├── one_stylesheet.js ├── one_stylesheet_with_web_font.js ├── one_tricky_stylesheet.js ├── page1 │ ├── script.js │ └── stylesheet.css ├── page2 │ ├── script.js │ └── stylesheet.css ├── stylesheet1.css ├── stylesheet2.css ├── stylesheet3.css └── two_stylesheets.js ├── helpers ├── compilation-test.js ├── configs.js ├── core-test.js ├── hot-reload-test.js ├── jasmineSetup.js ├── main-tests.js ├── multi-entry-test.js └── versions.js ├── hot-reload-spec.js ├── postcss.config.js ├── set-position-spec.js └── support └── jasmine.json /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /dynavers_modules/ 3 | /dist/ 4 | /issue/ 5 | npm-debug.log 6 | .swp 7 | .idea 8 | 9 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "11" 4 | - "10" 5 | - "9" 6 | - "8" 7 | - "7" 8 | - "6" 9 | env: 10 | - CXX=g++-4.8 11 | addons: 12 | apt: 13 | sources: 14 | - ubuntu-toolchain-r-test 15 | packages: 16 | - g++-4.8 17 | 18 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 numical 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [](http://badge.fury.io/js/style-ext-html-webpack-plugin) [](https://david-dm.org/numical/style-ext-html-webpack-plugin) [](https://travis-ci.org/numical/style-ext-html-webpack-plugin) [](https://github.com/Flet/semistandard) 2 | 3 | [](https://nodei.co/npm/style-ext-html-webpack-plugin/) 4 | 5 | ## Deprecation Warning 6 | 7 | **tl;dr** 8 | This project is no longer maintained. It does not support Webpack 5. 9 | 10 | **A bit more detail** 11 | Any look at the [project activity](https://github.com/numical/style-ext-html-webpack-plugin/pulse) will show that I have not been able to maintain this project adequately. 12 | The advent of version 5 of Webpack requires another bout of refactoring that I simply have no time for. 13 | Consequently v4.1.3 will be the last version of this plugin. 14 | My thanks to all users, and especially to all contributors, of this plugin over the years. 15 | My apologies to all those whose webpack 5 migration has been made more complicated by this decision. 16 | 17 | **But I still want to use the plugin...** 18 | Feel free! 19 | My last update works with versions of v4.x of webpack and v4.x of html-webpack-plugin. 20 | Forkers feel free! That's what the licence is for. 21 | In fact, if you fork with an intention to support on-going development, let me know! 22 | I'll happily link to your repository here and offer some tips (main one: ditch backward compatibility - it's a pain). 23 | I will formally archive this repository at the end of the 2020. 24 | 25 | ## Summary 26 | > 27 | > If you use HtmlWebpackPlugin and ExtractTextPlugin or MiniCssExtractPlugin to `` to external stylesheet files, add this plugin to convert the links into `