├── .editorconfig ├── .eslintignore ├── .eslintrc.json ├── .github └── workflows │ └── ci-tests.yml ├── .gitignore ├── .prettierignore ├── .prettierrc.json ├── .yarnrc.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── examples └── modify-vue-files │ ├── .eslintignore │ ├── .gitignore │ ├── README.md │ ├── babel.config.js │ ├── package-lock.json │ ├── package.json │ ├── public │ ├── favicon.ico │ └── index.html │ ├── src │ ├── App.vue │ ├── assets │ │ └── logo.png │ ├── components │ │ └── HelloWorld.vue │ └── main.js │ └── vue.config.js ├── jest.config.js ├── package.json ├── src ├── ModifySourcePlugin.ts ├── __tests__ │ ├── basic.test.ts │ └── fixtures │ │ ├── css-file.css │ │ ├── ext-css.css │ │ ├── index-css.js │ │ ├── index-ext-css.js │ │ ├── index.js │ │ ├── one-module.js │ │ └── two-module.js ├── index.ts ├── loader.ts └── operations │ ├── AbstractOperation.ts │ ├── ConcatOperation.ts │ ├── Operation.ts │ ├── ReplaceOperation.ts │ └── index.ts ├── tsconfig.json └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/workflows/ci-tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/.github/workflows/ci-tests.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /.yarnrc.yml: -------------------------------------------------------------------------------- 1 | nodeLinker: "node-modules" -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/README.md -------------------------------------------------------------------------------- /examples/modify-vue-files/.eslintignore: -------------------------------------------------------------------------------- 1 | src 2 | -------------------------------------------------------------------------------- /examples/modify-vue-files/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/examples/modify-vue-files/.gitignore -------------------------------------------------------------------------------- /examples/modify-vue-files/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/examples/modify-vue-files/README.md -------------------------------------------------------------------------------- /examples/modify-vue-files/babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/examples/modify-vue-files/babel.config.js -------------------------------------------------------------------------------- /examples/modify-vue-files/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/examples/modify-vue-files/package-lock.json -------------------------------------------------------------------------------- /examples/modify-vue-files/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/examples/modify-vue-files/package.json -------------------------------------------------------------------------------- /examples/modify-vue-files/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/examples/modify-vue-files/public/favicon.ico -------------------------------------------------------------------------------- /examples/modify-vue-files/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/examples/modify-vue-files/public/index.html -------------------------------------------------------------------------------- /examples/modify-vue-files/src/App.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/examples/modify-vue-files/src/App.vue -------------------------------------------------------------------------------- /examples/modify-vue-files/src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/examples/modify-vue-files/src/assets/logo.png -------------------------------------------------------------------------------- /examples/modify-vue-files/src/components/HelloWorld.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/examples/modify-vue-files/src/components/HelloWorld.vue -------------------------------------------------------------------------------- /examples/modify-vue-files/src/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/examples/modify-vue-files/src/main.js -------------------------------------------------------------------------------- /examples/modify-vue-files/vue.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/examples/modify-vue-files/vue.config.js -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/package.json -------------------------------------------------------------------------------- /src/ModifySourcePlugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/src/ModifySourcePlugin.ts -------------------------------------------------------------------------------- /src/__tests__/basic.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/src/__tests__/basic.test.ts -------------------------------------------------------------------------------- /src/__tests__/fixtures/css-file.css: -------------------------------------------------------------------------------- 1 | .my-class { 2 | background: white; 3 | } 4 | -------------------------------------------------------------------------------- /src/__tests__/fixtures/ext-css.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/src/__tests__/fixtures/ext-css.css -------------------------------------------------------------------------------- /src/__tests__/fixtures/index-css.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | require('./css-file.css'); 4 | -------------------------------------------------------------------------------- /src/__tests__/fixtures/index-ext-css.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | require('./ext-css.css'); 4 | -------------------------------------------------------------------------------- /src/__tests__/fixtures/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/src/__tests__/fixtures/index.js -------------------------------------------------------------------------------- /src/__tests__/fixtures/one-module.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/src/__tests__/fixtures/one-module.js -------------------------------------------------------------------------------- /src/__tests__/fixtures/two-module.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/src/__tests__/fixtures/two-module.js -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/loader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/src/loader.ts -------------------------------------------------------------------------------- /src/operations/AbstractOperation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/src/operations/AbstractOperation.ts -------------------------------------------------------------------------------- /src/operations/ConcatOperation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/src/operations/ConcatOperation.ts -------------------------------------------------------------------------------- /src/operations/Operation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/src/operations/Operation.ts -------------------------------------------------------------------------------- /src/operations/ReplaceOperation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/src/operations/ReplaceOperation.ts -------------------------------------------------------------------------------- /src/operations/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/src/operations/index.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artembatura/modify-source-webpack-plugin/HEAD/yarn.lock --------------------------------------------------------------------------------