Skip to content

Commit

Permalink
Demo App: Webpack Build for Webpack 4
Browse files Browse the repository at this point in the history
I wrote a new webpack configuration to be able to use the
demo app within the new toolchain.
I also removed some obscure resolves and fixed Webpack HMR.

The current version does not work with zepto.
madrobby/zepto#1324
I am not willing to do this workaround. Maybe, there will
be a zepto version in near future.
  • Loading branch information
johannwagner committed Feb 20, 2020
1 parent 2ffbb54 commit 03119cc
Show file tree
Hide file tree
Showing 10 changed files with 786 additions and 410 deletions.
23 changes: 9 additions & 14 deletions demo/app.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
import 'less/test.less'
import 'less/goldenlayout-base.less'
import 'less/goldenlayout-dark-theme.less'
import './test.less'
import '../src/less/goldenlayout-base.less'
import '../src/less/themes/goldenlayout-dark-theme.less'

console.log('ZEPTO active: ', env.ZEPTO)
console.log('JQUERY active: ', env.JQUERY)

export var GoldenLayout = function trick_preprocessor_and_webpack_hmr (a) {
return require('js/LayoutManager').default // if ES6 exists 'js/' is alias for 'js_es6/'
}()

if(env.ZEPTO){
require('script-loader!../node_modules/zepto/dist/zepto.js');
require('../lib/zepto-extras.js');
}
import jz from "jz";

window.$ = jz;

import GoldenLayout from "../src/index"

// class LoggerAspect {
// @beforeMethod({
Expand All @@ -34,12 +29,12 @@ $(() => {
// console.log('intercepted event, e:', e.target)
// });

//
//
// set layout type
//
//
var layout = 'standard'

//
//
// init
//
var config
Expand Down
File renamed without changes.
4 changes: 0 additions & 4 deletions lib/jquery.js

This file was deleted.

2 changes: 0 additions & 2 deletions lib/zepto.js

This file was deleted.

Loading

0 comments on commit 03119cc

Please sign in to comment.