Skip to content

Commit 8a62a7d

Browse files
committed
Remove redundant channel edit editordev route.
Only build editordev bundle in development.
1 parent f936487 commit 8a62a7d

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

contentcuration/contentcuration/frontend/channelEdit/router.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,10 @@ import ReviewSelectionsPage from './views/ImportFromChannels/ReviewSelectionsPag
1111
import EditModal from './components/edit/EditModal';
1212
import ChannelDetailsModal from 'shared/views/channel/ChannelDetailsModal';
1313
import ChannelModal from 'shared/views/channel/ChannelModal';
14-
import TipTapEditor from 'shared/views/TipTapEditor/TipTapEditor/TipTapEditor.vue';
1514
import { RouteNames as ChannelRouteNames } from 'frontend/channelList/constants';
1615

1716
const router = new VueRouter({
1817
routes: [
19-
{
20-
path: '/editor-dev',
21-
name: 'TipTapEditorDev',
22-
component: TipTapEditor,
23-
},
2418
{
2519
name: RouteNames.TREE_ROOT_VIEW,
2620
path: '/',

webpack.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ module.exports = (env = {}) => {
9090
})
9191
}
9292

93-
return merge(base, {
93+
const config = merge(base, {
9494
context: srcDir,
9595
entry: {
9696
// Use arrays for every entry to allow for hot reloading.
@@ -103,7 +103,6 @@ module.exports = (env = {}) => {
103103
pdfJSWorker: ['pdfjs-dist/build/pdf.worker.entry.js'],
104104
// Utility for taking screenshots inside an iframe sandbox
105105
htmlScreenshot: ['./shared/utils/htmlScreenshot.js'],
106-
editorDev: './editorDev/index.js',
107106
},
108107
output: {
109108
filename: dev ? '[name].js' : '[name]-[fullhash].js',
@@ -185,4 +184,8 @@ module.exports = (env = {}) => {
185184
],
186185
stats: 'normal',
187186
});
187+
if (dev) {
188+
config.entry.editorDev = './editorDev/index.js';
189+
}
190+
return config;
188191
};

0 commit comments

Comments
 (0)