This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Added Demo.

  • Loading branch information...
th3mon committed Jan 30, 2018
1 parent 4db07a9 commit 1692fccff90595885146f9ad0cafe25888bceeae
Showing with 1,042 additions and 10 deletions.
  1. +74 −0 config/demo.js
  2. +1 −1 config/dev.js
  3. +1 −1 config/prod.js
  4. +5 −2 css/main.css
  5. +925 −0 demo/main.1.0.0.bundle.js
  6. +1 −0 demo/main.1.0.0.map
  7. +12 −0 demo/main.bundle.css
  8. +0 −5 package-lock.json
  9. +2 −0 package.json
  10. +20 −0 src/demo.js
  11. +1 −1 src/simple-debugger.js
View
@@ -0,0 +1,74 @@
const webpack = require('webpack');
const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const HtmlWebpackHarddiskPlugin = require('html-webpack-harddisk-plugin');
const version = require('../package.json').version;
module.exports = function () {
return {
devtool: 'cheap-module-source-map',
entry: {
main: './src/demo.js'
},
output: {
path: path.resolve(__dirname, '../demo'),
filename: `[name].${version}.bundle.js`,
sourceMapFilename: `[name].${version}.map`
},
module: {
rules: [
{
enforce: 'pre',
test: /\.js$/,
exclude: /node_modules/,
loader: 'eslint-loader'
},
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
presets: ['env']
}
}
},
{
test: /\.css$/,
use: ExtractTextPlugin.extract({
fallback: 'style-loader',
use: 'css-loader'
})
},
{
test: /\.scss$/,
use: ExtractTextPlugin.extract({
fallback: 'style-loader',
use: [ 'css-loader', 'sass-loader' ]
})
}
]
},
plugins: [
new ExtractTextPlugin({
filename: '[name].bundle.css'
}),
new HtmlWebpackPlugin({
title: 'SimpleDebugger',
alwaysWriteToDisk: true
}),
new HtmlWebpackHarddiskPlugin(),
new webpack.NamedModulesPlugin(),
new webpack.HotModuleReplacementPlugin()
],
devServer: {
contentBase: './dist',
port: 7777,
host: 'localhost',
hot: true,
noInfo: false,
stats: 'minimal'
}
};
};
View
@@ -5,7 +5,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
const HtmlWebpackHarddiskPlugin = require('html-webpack-harddisk-plugin');
const version = require('../package.json').version;
module.exports = function (env) {
module.exports = function () {
return {
devtool: 'cheap-module-source-map',
entry: {
View
@@ -4,7 +4,7 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const version = require('../package.json').version;
module.exports = function (env) {
module.exports = function () {
return {
entry: {
main: './src/index.js'
View
@@ -5,7 +5,10 @@
position: fixed;
top: 0;
width: 100%;
height: 100px;
overflow-y: scroll;
}
.SimpleDebuggerOnBoard {
}
}
Oops, something went wrong.

0 comments on commit 1692fcc

Please sign in to comment.