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');