From 017ff71fdde79dbcd8040ec389c8f578c9722300 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Sat, 23 Jan 2021 10:21:28 -0500 Subject: [PATCH] removing old files for the plugin --- dist/webpack/plugin.js | 20 -------------------- package.json | 1 - webpack-helper.js | 1 - 3 files changed, 22 deletions(-) delete mode 100644 dist/webpack/plugin.js delete mode 100644 webpack-helper.js diff --git a/dist/webpack/plugin.js b/dist/webpack/plugin.js deleted file mode 100644 index ca81b1b..0000000 --- a/dist/webpack/plugin.js +++ /dev/null @@ -1,20 +0,0 @@ -/* - * This file is part of the Symfony package. - * - * (c) Fabien Potencier - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ -'use strict'; - -var webpack = require('webpack'); - -module.exports = function createStimulusBridgePlugin(controllersJsonPath) { - return new webpack.NormalModuleReplacementPlugin(/stimulus-bridge\/controllers-placeholder\.json$/, function (resource) { - // controls how the import string will be parsed, includes loader - resource.request = "./webpack/loader!".concat(controllersJsonPath); // controls the physical file that will be read - - resource.createData.resource = controllersJsonPath; - }); -}; \ No newline at end of file diff --git a/package.json b/package.json index dea4d65..7428416 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,6 @@ "files": [ "src/", "dist/", - "webpack-helper.js", "controllers.json" ] } diff --git a/webpack-helper.js b/webpack-helper.js deleted file mode 100644 index 75b1e8d..0000000 --- a/webpack-helper.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./dist/webpack/plugin');