This repository has been archived by the owner on Apr 27, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Added Demo.
- Loading branch information
Showing
11 changed files
with
1,042 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' | ||
} | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,10 @@ | |
position: fixed; | ||
top: 0; | ||
width: 100%; | ||
|
||
height: 100px; | ||
overflow-y: scroll; | ||
} | ||
.SimpleDebuggerOnBoard { | ||
} | ||
|
||
} |
Oops, something went wrong.