Skip to content
This repository has been archived by the owner on Apr 27, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Added Demo.
  • Loading branch information
th3mon committed Feb 2, 2018
1 parent 4db07a9 commit 1692fcc
Show file tree
Hide file tree
Showing 11 changed files with 1,042 additions and 10 deletions.
74 changes: 74 additions & 0 deletions config/demo.js
@@ -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'
}
};
};
2 changes: 1 addition & 1 deletion config/dev.js
Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion config/prod.js
Expand Up @@ -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'
Expand Down
7 changes: 5 additions & 2 deletions css/main.css
Expand Up @@ -5,7 +5,10 @@
position: fixed;
top: 0;
width: 100%;

height: 100px;
overflow-y: scroll;
}
.SimpleDebuggerOnBoard {
}

}

0 comments on commit 1692fcc

Please sign in to comment.