Parcourir la source

try another one

Andrey Titovskiy il y a 3 ans
Parent
commit
6f91812249
8 fichiers modifiés avec 13 ajouts et 13 suppressions
  1. 0 8
      build/branding.js
  2. 0 0
      build/branding.js.map
  3. 1 1
      build/index.html
  4. 5 0
      build/index.js
  5. 0 0
      build/index.js.map
  6. 1 0
      build/index.ts
  7. 2 1
      src/index.js
  8. 4 3
      webpack.config.js

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 8
build/branding.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
build/branding.js.map


+ 1 - 1
build/index.html

@@ -1 +1 @@
-<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>Ulearn Branding Test</title><link href="style.css" rel="stylesheet"></head><body><div id="root" style="width: 100%; height: 100%;">test</div><script src="branding.js"></script></body></html>
+<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>Ulearn Branding Test</title><link href="style.css" rel="stylesheet"></head><body><div id="root" style="width: 100%; height: 100%;">test</div><script src="index.js"></script></body></html>

Fichier diff supprimé car celui-ci est trop grand
+ 5 - 0
build/index.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
build/index.js.map


+ 1 - 0
build/cert.ts → build/index.ts

@@ -1,3 +1,4 @@
+var Cert =
 /******/ (function(modules) { // webpackBootstrap
 /******/ 	// The module cache
 /******/ 	var installedModules = {};

+ 2 - 1
src/index.js

@@ -1,6 +1,7 @@
 import React, { Component, Fragment } from 'react';
 import ReactDOM from 'react-dom';
-import { brandingMapping, certTemplate } from './branding';
+import { brandingMapping } from './branding';
+import { certTemplate } from './cert.ts';
 
 const label = 'vashden'
 class Dashboard extends Component {

+ 4 - 3
webpack.config.js

@@ -100,19 +100,20 @@ var certConfig = Object.assign({}, config, {
 	name: "cert",
 	entry: "./src/cert.ts",
 	output: {
+		library: 'Cert',
 		path: path.resolve(__dirname, outputDirectory),
-		filename: "cert.ts"
+		filename: "index.ts"
 	},
 });
 
 var brandingConfig = Object.assign({}, config, {
 	name: "branding",
-	entry: "./src/branding.js",
+	entry: "./src/index.js",
 	output: {
 		library: 'Branding',
 		libraryTarget: 'umd',
 		path: path.resolve(__dirname, outputDirectory),
-		filename: "branding.js"
+		filename: "index.js"
 	},
 });
 

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff