chore(extension): remove bundle rename (#673)

This commit is contained in:
Nathan Bierema 2020-11-16 17:34:21 -05:00 committed by GitHub
parent de1fd3add6
commit 01ae238e14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 12 deletions

View File

@ -1,4 +1,3 @@
import fs from 'fs';
import gulp from 'gulp'; import gulp from 'gulp';
import gutil from 'gulp-util'; import gutil from 'gulp-util';
import rename from 'gulp-rename'; import rename from 'gulp-rename';
@ -55,14 +54,7 @@ gulp.task('webpack:build:extension', (callback) => {
} }
webpackProcess(wrapConfig) webpackProcess(wrapConfig)
.then(() => webpackProcess(prodConfig)) .then(() => webpackProcess(prodConfig))
.then(() => { .then(callback);
const dest = './build/extension';
fs.rename(
`${dest}/redux-devtools-extension.bundle.js`,
`${dest}/redux-devtools-extension.js`,
callback
);
});
}); });
gulp.task('copy:build:extension', (done) => { gulp.task('copy:build:extension', (done) => {

View File

@ -1,5 +1,5 @@
// Include this script in Chrome apps and extensions for remote debugging // Include this script in Chrome apps and extensions for remote debugging
// <script src="chrome-extension://lmhkpmbekcpmknklioeibfkpmmfibljd/js/redux-devtools-extension.js"></script> // <script src="chrome-extension://lmhkpmbekcpmknklioeibfkpmmfibljd/js/redux-devtools-extension.bundle.js"></script>
window.devToolsExtensionID = 'lmhkpmbekcpmknklioeibfkpmmfibljd'; window.devToolsExtensionID = 'lmhkpmbekcpmknklioeibfkpmmfibljd';
require('./contentScript'); require('./contentScript');

View File

@ -55,7 +55,7 @@
"web_accessible_resources": [ "web_accessible_resources": [
"page.bundle.js", "page.bundle.js",
"inject.bundle.js", "inject.bundle.js",
"redux-devtools-extension.js" "redux-devtools-extension.bundle.js"
], ],
"externally_connectable": { "externally_connectable": {
"ids": ["*"] "ids": ["*"]

View File

@ -52,7 +52,7 @@
"web_accessible_resources": [ "web_accessible_resources": [
"page.bundle.js", "page.bundle.js",
"inject.bundle.js", "inject.bundle.js",
"redux-devtools-extension.js" "redux-devtools-extension.bundle.js"
], ],
"permissions": [ "permissions": [
"notifications", "notifications",