Remove the index.js indirection
Make index.es6 the main entry point.
This commit is contained in:
parent
95bccc2e53
commit
ce7a2d3870
3 changed files with 4 additions and 31 deletions
|
|
@ -17,6 +17,8 @@
|
|||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with Cockpit; If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import 'cockpit';
|
||||
import React from 'react';
|
||||
import { StarterKit } from './starter-kit-view.jsx';
|
||||
|
||||
|
|
@ -30,10 +32,4 @@ function render() {
|
|||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Start the application.
|
||||
*/
|
||||
export function run() {
|
||||
// do initial render
|
||||
render();
|
||||
}
|
||||
document.addEventListener("DOMContentLoaded", render);
|
||||
|
|
|
|||
23
src/index.js
23
src/index.js
|
|
@ -1,23 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2017 Red Hat, Inc.
|
||||
*
|
||||
* Cockpit is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation; either version 2.1 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Cockpit is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this package; If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
var cockpit = require("cockpit");
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
var app = require("./index.es6");
|
||||
app.run();
|
||||
});
|
||||
|
|
@ -21,7 +21,7 @@ var production = process.env.NODE_ENV === 'production';
|
|||
var info = {
|
||||
entries: {
|
||||
"index": [
|
||||
"./index.js"
|
||||
"./index.es6"
|
||||
]
|
||||
},
|
||||
files: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue