2016-10-11 07:45:00 +00:00
|
|
|
var webpack = require('webpack');
|
|
|
|
var path = require('path');
|
|
|
|
var ExtractTextPlugin = require("extract-text-webpack-plugin");
|
2016-10-13 00:56:56 +00:00
|
|
|
var HtmlWebpackPlugin = require('html-webpack-plugin');
|
2016-11-26 15:18:51 +00:00
|
|
|
var CopyWebpackPlugin = require('copy-webpack-plugin');
|
2016-10-11 07:45:00 +00:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
plugins: [
|
|
|
|
new webpack.ProvidePlugin({
|
|
|
|
Visibility: "visibilityjs",
|
|
|
|
Cookies: "js-cookie",
|
2016-10-13 03:42:17 +00:00
|
|
|
key: "keymaster",
|
|
|
|
$: "jquery",
|
|
|
|
jQuery: "jquery",
|
2016-10-13 08:25:04 +00:00
|
|
|
"window.jQuery": "jquery",
|
2016-10-13 08:35:43 +00:00
|
|
|
"moment": "moment",
|
|
|
|
"Handlebars": "handlebars"
|
2016-10-11 07:45:00 +00:00
|
|
|
}),
|
2016-11-26 15:24:59 +00:00
|
|
|
new webpack.optimize.OccurrenceOrderPlugin(true),
|
2016-10-11 07:45:00 +00:00
|
|
|
new webpack.optimize.CommonsChunkPlugin({
|
2016-10-19 14:14:32 +00:00
|
|
|
names: ["cover", "index", "pretty", "slide", "vendor"],
|
2016-10-13 00:56:56 +00:00
|
|
|
children: true,
|
2016-10-11 09:15:06 +00:00
|
|
|
async: true,
|
|
|
|
filename: '[name].js',
|
|
|
|
minChunks: Infinity
|
2016-10-13 00:56:56 +00:00
|
|
|
}),
|
|
|
|
new HtmlWebpackPlugin({
|
|
|
|
template: 'public/views/includes/header.ejs',
|
2016-11-26 15:18:51 +00:00
|
|
|
chunks: ['font', 'index-styles', 'index'],
|
2016-10-13 00:56:56 +00:00
|
|
|
filename: path.join(__dirname, 'public/views/build/index-header.ejs'),
|
|
|
|
inject: false
|
|
|
|
}),
|
2016-11-26 15:18:51 +00:00
|
|
|
new HtmlWebpackPlugin({
|
|
|
|
template: 'public/views/includes/header.ejs',
|
|
|
|
chunks: ['font-pack', 'index-styles-pack', 'index-styles', 'index'],
|
|
|
|
filename: path.join(__dirname, 'public/views/build/index-pack-header.ejs'),
|
|
|
|
inject: false
|
|
|
|
}),
|
2016-10-13 00:56:56 +00:00
|
|
|
new HtmlWebpackPlugin({
|
|
|
|
template: 'public/views/includes/scripts.ejs',
|
2016-11-26 15:18:51 +00:00
|
|
|
chunks: ['index'],
|
2016-10-13 00:56:56 +00:00
|
|
|
filename: path.join(__dirname, 'public/views/build/index-scripts.ejs'),
|
|
|
|
inject: false
|
|
|
|
}),
|
2016-11-26 15:13:02 +00:00
|
|
|
new HtmlWebpackPlugin({
|
2016-11-26 15:18:51 +00:00
|
|
|
template: 'public/views/includes/scripts.ejs',
|
|
|
|
chunks: ['common', 'index-pack'],
|
|
|
|
filename: path.join(__dirname, 'public/views/build/index-pack-scripts.ejs'),
|
|
|
|
inject: false
|
|
|
|
}),
|
2016-10-13 00:56:56 +00:00
|
|
|
new HtmlWebpackPlugin({
|
|
|
|
template: 'public/views/includes/header.ejs',
|
2016-11-26 15:13:02 +00:00
|
|
|
chunks: ['font', 'cover'],
|
2016-10-13 00:56:56 +00:00
|
|
|
filename: path.join(__dirname, 'public/views/build/cover-header.ejs'),
|
|
|
|
inject: false
|
|
|
|
}),
|
2016-11-26 15:13:02 +00:00
|
|
|
new HtmlWebpackPlugin({
|
|
|
|
template: 'public/views/includes/header.ejs',
|
|
|
|
chunks: ['font-pack', 'cover-styles-pack', 'cover'],
|
|
|
|
filename: path.join(__dirname, 'public/views/build/cover-pack-header.ejs'),
|
|
|
|
inject: false
|
|
|
|
}),
|
2016-10-13 00:56:56 +00:00
|
|
|
new HtmlWebpackPlugin({
|
|
|
|
template: 'public/views/includes/scripts.ejs',
|
2016-11-26 15:13:02 +00:00
|
|
|
chunks: ['cover'],
|
2016-10-13 00:56:56 +00:00
|
|
|
filename: path.join(__dirname, 'public/views/build/cover-scripts.ejs'),
|
|
|
|
inject: false
|
|
|
|
}),
|
|
|
|
new HtmlWebpackPlugin({
|
2016-11-26 15:13:02 +00:00
|
|
|
template: 'public/views/includes/scripts.ejs',
|
|
|
|
chunks: ['common', 'cover-pack'],
|
|
|
|
filename: path.join(__dirname, 'public/views/build/cover-pack-scripts.ejs'),
|
|
|
|
inject: false
|
|
|
|
}),
|
2016-11-26 15:22:47 +00:00
|
|
|
new HtmlWebpackPlugin({
|
2016-10-13 00:56:56 +00:00
|
|
|
template: 'public/views/includes/header.ejs',
|
2016-11-26 15:22:47 +00:00
|
|
|
chunks: ['font', 'pretty-styles', 'pretty'],
|
2016-10-13 00:56:56 +00:00
|
|
|
filename: path.join(__dirname, 'public/views/build/pretty-header.ejs'),
|
|
|
|
inject: false
|
|
|
|
}),
|
2016-11-26 15:22:47 +00:00
|
|
|
new HtmlWebpackPlugin({
|
|
|
|
template: 'public/views/includes/header.ejs',
|
|
|
|
chunks: ['font-pack', 'pretty-styles-pack', 'pretty-styles', 'pretty'],
|
|
|
|
filename: path.join(__dirname, 'public/views/build/pretty-pack-header.ejs'),
|
|
|
|
inject: false
|
|
|
|
}),
|
2016-10-13 00:56:56 +00:00
|
|
|
new HtmlWebpackPlugin({
|
|
|
|
template: 'public/views/includes/scripts.ejs',
|
2016-11-26 15:22:47 +00:00
|
|
|
chunks: ['pretty'],
|
2016-10-13 00:56:56 +00:00
|
|
|
filename: path.join(__dirname, 'public/views/build/pretty-scripts.ejs'),
|
|
|
|
inject: false
|
|
|
|
}),
|
|
|
|
new HtmlWebpackPlugin({
|
2016-11-26 15:22:47 +00:00
|
|
|
template: 'public/views/includes/scripts.ejs',
|
|
|
|
chunks: ['common', 'pretty-pack'],
|
|
|
|
filename: path.join(__dirname, 'public/views/build/pretty-pack-scripts.ejs'),
|
|
|
|
inject: false
|
|
|
|
}),
|
2016-11-26 15:24:59 +00:00
|
|
|
new HtmlWebpackPlugin({
|
2016-10-13 00:56:56 +00:00
|
|
|
template: 'public/views/includes/header.ejs',
|
2016-11-26 15:24:59 +00:00
|
|
|
chunks: ['font', 'slide-styles', 'slide'],
|
2016-10-13 00:56:56 +00:00
|
|
|
filename: path.join(__dirname, 'public/views/build/slide-header.ejs'),
|
|
|
|
inject: false
|
|
|
|
}),
|
2016-11-26 15:24:59 +00:00
|
|
|
new HtmlWebpackPlugin({
|
|
|
|
template: 'public/views/includes/header.ejs',
|
|
|
|
chunks: ['font-pack', 'slide-styles-pack', 'slide-styles', 'slide'],
|
|
|
|
filename: path.join(__dirname, 'public/views/build/slide-pack-header.ejs'),
|
|
|
|
inject: false
|
|
|
|
}),
|
2016-10-13 00:56:56 +00:00
|
|
|
new HtmlWebpackPlugin({
|
|
|
|
template: 'public/views/includes/scripts.ejs',
|
2016-11-26 15:24:59 +00:00
|
|
|
chunks: ['slide'],
|
2016-10-13 00:56:56 +00:00
|
|
|
filename: path.join(__dirname, 'public/views/build/slide-scripts.ejs'),
|
|
|
|
inject: false
|
2016-11-26 15:18:51 +00:00
|
|
|
}),
|
|
|
|
new HtmlWebpackPlugin({
|
|
|
|
template: 'public/views/includes/scripts.ejs',
|
2016-11-28 16:44:29 +00:00
|
|
|
chunks: ['slide-pack'],
|
2016-11-26 15:18:51 +00:00
|
|
|
filename: path.join(__dirname, 'public/views/build/slide-pack-scripts.ejs'),
|
|
|
|
inject: false
|
|
|
|
}),
|
|
|
|
new CopyWebpackPlugin([
|
|
|
|
{
|
|
|
|
context: path.join(__dirname, 'node_modules/mathjax'),
|
|
|
|
from: {
|
|
|
|
glob: '**/*',
|
|
|
|
dot: false
|
|
|
|
},
|
|
|
|
to: 'MathJax/'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
context: path.join(__dirname, 'node_modules/emojify.js'),
|
|
|
|
from: {
|
|
|
|
glob: '**/*',
|
|
|
|
dot: false
|
|
|
|
},
|
|
|
|
to: 'emojify.js/'
|
2016-11-28 16:44:15 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
context: path.join(__dirname, 'node_modules/reveal.js'),
|
|
|
|
from: {
|
|
|
|
glob: '**/*',
|
|
|
|
dot: false
|
|
|
|
},
|
|
|
|
to: 'reveal.js/'
|
2016-11-26 15:18:51 +00:00
|
|
|
}
|
|
|
|
])
|
2016-10-11 07:45:00 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
entry: {
|
2016-11-26 15:13:02 +00:00
|
|
|
font: path.join(__dirname, 'public/css/google-font.css'),
|
|
|
|
"font-pack": path.join(__dirname, 'public/css/font.css'),
|
|
|
|
common: [
|
|
|
|
"expose?jQuery!expose?$!jquery",
|
|
|
|
"velocity-animate",
|
2016-10-13 05:59:34 +00:00
|
|
|
"imports?$=jquery!jquery-mousewheel",
|
2016-11-26 15:13:02 +00:00
|
|
|
"bootstrap"
|
|
|
|
],
|
2016-11-26 15:19:34 +00:00
|
|
|
cover: [
|
|
|
|
path.join(__dirname, 'public/js/cover.js')
|
|
|
|
],
|
|
|
|
"cover-styles-pack": [
|
|
|
|
path.join(__dirname, 'node_modules/bootstrap/dist/css/bootstrap.min.css'),
|
|
|
|
path.join(__dirname, 'node_modules/font-awesome/css/font-awesome.min.css'),
|
|
|
|
path.join(__dirname, 'public/css/bootstrap-social.css'),
|
|
|
|
path.join(__dirname, 'node_modules/select2/select2.css'),
|
|
|
|
path.join(__dirname, 'node_modules/select2/select2-bootstrap.css'),
|
|
|
|
],
|
|
|
|
"cover-pack": [
|
2016-12-20 12:33:16 +00:00
|
|
|
"bootstrap-validator",
|
2016-11-26 15:19:34 +00:00
|
|
|
"script!listPagnation",
|
|
|
|
"expose?select2!select2",
|
|
|
|
"expose?moment!moment",
|
2016-12-24 09:02:03 +00:00
|
|
|
"script!js-url",
|
2016-11-26 15:19:34 +00:00
|
|
|
path.join(__dirname, 'public/js/cover.js')
|
|
|
|
],
|
2016-11-26 15:18:51 +00:00
|
|
|
index: [
|
|
|
|
"script!jquery-ui-resizable",
|
2016-12-24 09:02:03 +00:00
|
|
|
"script!js-url",
|
2016-11-26 15:18:51 +00:00
|
|
|
"expose?filterXSS!xss",
|
|
|
|
"script!Idle.Js",
|
|
|
|
"expose?LZString!lz-string",
|
|
|
|
"script!codemirror",
|
|
|
|
"script!inlineAttachment",
|
|
|
|
"script!jqueryTextcomplete",
|
|
|
|
"script!codemirrorSpellChecker",
|
|
|
|
"script!codemirrorInlineAttachment",
|
|
|
|
"script!ot",
|
|
|
|
"flowchart.js",
|
|
|
|
"js-sequence-diagrams",
|
2016-11-27 18:14:18 +00:00
|
|
|
"expose?RevealMarkdown!reveal-markdown",
|
2016-11-26 15:18:51 +00:00
|
|
|
path.join(__dirname, 'public/js/google-drive-upload.js'),
|
|
|
|
path.join(__dirname, 'public/js/google-drive-picker.js'),
|
|
|
|
path.join(__dirname, 'public/js/index.js')
|
|
|
|
],
|
|
|
|
"index-styles": [
|
|
|
|
path.join(__dirname, 'public/vendor/jquery-ui/jquery-ui.min.css'),
|
|
|
|
path.join(__dirname, 'public/vendor/codemirror-spell-checker/spell-checker.min.css'),
|
2016-11-27 17:36:48 +00:00
|
|
|
path.join(__dirname, 'node_modules/codemirror/lib/codemirror.css'),
|
|
|
|
path.join(__dirname, 'node_modules/codemirror/addon/fold/foldgutter.css'),
|
|
|
|
path.join(__dirname, 'node_modules/codemirror/addon/display/fullscreen.css'),
|
|
|
|
path.join(__dirname, 'node_modules/codemirror/addon/dialog/dialog.css'),
|
|
|
|
path.join(__dirname, 'node_modules/codemirror/addon/scroll/simplescrollbars.css'),
|
|
|
|
path.join(__dirname, 'node_modules/codemirror/addon/search/matchesonscrollbar.css'),
|
|
|
|
path.join(__dirname, 'node_modules/codemirror/theme/monokai.css'),
|
|
|
|
path.join(__dirname, 'node_modules/codemirror/theme/one-dark.css'),
|
|
|
|
path.join(__dirname, 'node_modules/codemirror/mode/tiddlywiki/tiddlywiki.css'),
|
|
|
|
path.join(__dirname, 'node_modules/codemirror/mode/mediawiki/mediawiki.css'),
|
2016-11-26 15:18:51 +00:00
|
|
|
path.join(__dirname, 'public/css/github-extract.css'),
|
|
|
|
path.join(__dirname, 'public/vendor/showup/showup.css'),
|
|
|
|
path.join(__dirname, 'public/css/mermaid.css'),
|
2016-11-27 18:14:00 +00:00
|
|
|
path.join(__dirname, 'public/css/markdown.css'),
|
|
|
|
path.join(__dirname, 'public/css/slide-preview.css')
|
2016-11-26 15:18:51 +00:00
|
|
|
],
|
|
|
|
"index-styles-pack": [
|
|
|
|
path.join(__dirname, 'node_modules/bootstrap/dist/css/bootstrap.min.css'),
|
|
|
|
path.join(__dirname, 'node_modules/font-awesome/css/font-awesome.min.css'),
|
|
|
|
path.join(__dirname, 'public/css/bootstrap-social.css'),
|
|
|
|
path.join(__dirname, 'node_modules/ionicons/css/ionicons.min.css'),
|
|
|
|
path.join(__dirname, 'node_modules/octicons/octicons/octicons.css')
|
|
|
|
],
|
|
|
|
"index-pack": [
|
2016-10-12 09:03:47 +00:00
|
|
|
"expose?Spinner!spin.js",
|
2016-11-26 15:18:51 +00:00
|
|
|
"script!jquery-ui-resizable",
|
2016-12-20 12:33:16 +00:00
|
|
|
"bootstrap-validator",
|
2016-11-26 15:18:51 +00:00
|
|
|
"expose?jsyaml!js-yaml",
|
|
|
|
"script!mermaid",
|
|
|
|
"expose?moment!moment",
|
2016-12-24 09:02:03 +00:00
|
|
|
"script!js-url",
|
2016-11-26 15:18:51 +00:00
|
|
|
"script!handlebars",
|
|
|
|
"expose?hljs!highlight.js",
|
|
|
|
"expose?emojify!emojify.js",
|
|
|
|
"expose?filterXSS!xss",
|
2016-10-12 09:03:47 +00:00
|
|
|
"script!Idle.Js",
|
2016-11-26 15:18:51 +00:00
|
|
|
"script!gist-embed",
|
2016-10-13 00:56:56 +00:00
|
|
|
"expose?LZString!lz-string",
|
|
|
|
"script!codemirror",
|
|
|
|
"script!inlineAttachment",
|
|
|
|
"script!jqueryTextcomplete",
|
|
|
|
"script!codemirrorSpellChecker",
|
|
|
|
"script!codemirrorInlineAttachment",
|
|
|
|
"script!ot",
|
|
|
|
"flowchart.js",
|
2016-11-26 15:18:51 +00:00
|
|
|
"js-sequence-diagrams",
|
|
|
|
"expose?Viz!viz.js",
|
|
|
|
"expose?io!socket.io-client",
|
2016-11-27 18:14:18 +00:00
|
|
|
"expose?RevealMarkdown!reveal-markdown",
|
2016-11-26 15:18:51 +00:00
|
|
|
path.join(__dirname, 'public/js/google-drive-upload.js'),
|
|
|
|
path.join(__dirname, 'public/js/google-drive-picker.js'),
|
|
|
|
path.join(__dirname, 'public/js/index.js')
|
|
|
|
],
|
2016-11-26 15:22:47 +00:00
|
|
|
pretty: [
|
|
|
|
"expose?filterXSS!xss",
|
|
|
|
"flowchart.js",
|
|
|
|
"js-sequence-diagrams",
|
2016-11-27 18:14:18 +00:00
|
|
|
"expose?RevealMarkdown!reveal-markdown",
|
2016-11-26 15:22:47 +00:00
|
|
|
path.join(__dirname, 'public/js/pretty.js')
|
|
|
|
],
|
|
|
|
"pretty-styles": [
|
|
|
|
path.join(__dirname, 'public/css/github-extract.css'),
|
|
|
|
path.join(__dirname, 'public/css/mermaid.css'),
|
2016-11-27 18:14:00 +00:00
|
|
|
path.join(__dirname, 'public/css/markdown.css'),
|
|
|
|
path.join(__dirname, 'public/css/slide-preview.css')
|
2016-11-26 15:22:47 +00:00
|
|
|
],
|
|
|
|
"pretty-styles-pack": [
|
|
|
|
path.join(__dirname, 'node_modules/bootstrap/dist/css/bootstrap.min.css'),
|
|
|
|
path.join(__dirname, 'node_modules/font-awesome/css/font-awesome.min.css'),
|
|
|
|
path.join(__dirname, 'node_modules/ionicons/css/ionicons.min.css'),
|
|
|
|
path.join(__dirname, 'node_modules/octicons/octicons/octicons.css')
|
|
|
|
],
|
|
|
|
"pretty-pack": [
|
|
|
|
"expose?jsyaml!js-yaml",
|
|
|
|
"script!mermaid",
|
|
|
|
"expose?moment!moment",
|
|
|
|
"script!handlebars",
|
|
|
|
"expose?hljs!highlight.js",
|
|
|
|
"expose?emojify!emojify.js",
|
|
|
|
"expose?filterXSS!xss",
|
|
|
|
"script!gist-embed",
|
|
|
|
"flowchart.js",
|
|
|
|
"js-sequence-diagrams",
|
|
|
|
"expose?Viz!viz.js",
|
2016-11-27 18:14:18 +00:00
|
|
|
"expose?RevealMarkdown!reveal-markdown",
|
2016-11-26 15:22:47 +00:00
|
|
|
path.join(__dirname, 'public/js/pretty.js')
|
|
|
|
],
|
2016-11-26 15:24:59 +00:00
|
|
|
slide: [
|
2016-11-28 16:44:29 +00:00
|
|
|
"bootstrap-tooltip",
|
2016-11-26 15:24:59 +00:00
|
|
|
"expose?filterXSS!xss",
|
|
|
|
"flowchart.js",
|
|
|
|
"js-sequence-diagrams",
|
2016-11-27 18:14:18 +00:00
|
|
|
"expose?RevealMarkdown!reveal-markdown",
|
2016-11-26 15:24:59 +00:00
|
|
|
path.join(__dirname, 'public/js/slide.js')
|
|
|
|
],
|
|
|
|
"slide-styles": [
|
2016-11-28 17:01:50 +00:00
|
|
|
path.join(__dirname, 'public/vendor/bootstrap/tooltip.min.css'),
|
2016-11-26 15:24:59 +00:00
|
|
|
path.join(__dirname, 'public/css/github-extract.css'),
|
|
|
|
path.join(__dirname, 'public/css/mermaid.css'),
|
|
|
|
path.join(__dirname, 'public/css/markdown.css')
|
|
|
|
],
|
|
|
|
"slide-styles-pack": [
|
|
|
|
path.join(__dirname, 'node_modules/font-awesome/css/font-awesome.min.css'),
|
|
|
|
path.join(__dirname, 'node_modules/ionicons/css/ionicons.min.css'),
|
2016-11-28 17:01:50 +00:00
|
|
|
path.join(__dirname, 'node_modules/octicons/octicons/octicons.css')
|
2016-11-26 15:24:59 +00:00
|
|
|
],
|
|
|
|
"slide-pack": [
|
2016-11-28 16:44:29 +00:00
|
|
|
"expose?jQuery!expose?$!jquery",
|
|
|
|
"velocity-animate",
|
|
|
|
"imports?$=jquery!jquery-mousewheel",
|
|
|
|
"bootstrap-tooltip",
|
2016-11-26 15:24:59 +00:00
|
|
|
"expose?jsyaml!js-yaml",
|
|
|
|
"script!mermaid",
|
|
|
|
"expose?moment!moment",
|
|
|
|
"script!handlebars",
|
|
|
|
"expose?hljs!highlight.js",
|
|
|
|
"expose?emojify!emojify.js",
|
|
|
|
"expose?filterXSS!xss",
|
|
|
|
"script!gist-embed",
|
|
|
|
"flowchart.js",
|
|
|
|
"js-sequence-diagrams",
|
|
|
|
"expose?Viz!viz.js",
|
|
|
|
"headjs",
|
|
|
|
"expose?Reveal!reveal.js",
|
2016-11-27 18:14:18 +00:00
|
|
|
"expose?RevealMarkdown!reveal-markdown",
|
2016-11-26 15:24:59 +00:00
|
|
|
path.join(__dirname, 'public/js/slide.js')
|
2016-10-11 07:45:00 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
output: {
|
|
|
|
path: path.join(__dirname, 'public/build'),
|
2016-10-11 09:15:06 +00:00
|
|
|
publicPath: '/build/',
|
2016-12-12 04:19:12 +00:00
|
|
|
filename: '[name].js',
|
|
|
|
baseUrl: '<%- url %>'
|
2016-10-11 07:45:00 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
resolve: {
|
2016-10-13 00:56:56 +00:00
|
|
|
modulesDirectories: [
|
2016-10-11 07:45:00 +00:00
|
|
|
path.resolve(__dirname, 'src'),
|
|
|
|
path.resolve(__dirname, 'node_modules')
|
|
|
|
],
|
2016-10-13 00:56:56 +00:00
|
|
|
extensions: ["", ".js"],
|
|
|
|
alias: {
|
2016-11-27 17:36:48 +00:00
|
|
|
codemirror: path.join(__dirname, 'node_modules/codemirror/codemirror.min.js'),
|
2016-10-13 00:56:56 +00:00
|
|
|
inlineAttachment: path.join(__dirname, 'public/vendor/inlineAttachment/inline-attachment.js'),
|
|
|
|
jqueryTextcomplete: path.join(__dirname, 'public/vendor/jquery-textcomplete/jquery.textcomplete.js'),
|
|
|
|
codemirrorSpellChecker: path.join(__dirname, 'public/vendor/codemirror-spell-checker/spell-checker.min.js'),
|
|
|
|
codemirrorInlineAttachment: path.join(__dirname, 'public/vendor/inlineAttachment/codemirror.inline-attachment.js'),
|
2016-11-26 15:13:02 +00:00
|
|
|
ot: path.join(__dirname, 'public/vendor/ot/ot.min.js'),
|
|
|
|
listPagnation: path.join(__dirname, 'node_modules/list.pagination.js/dist/list.pagination.min.js'),
|
2016-11-26 15:18:51 +00:00
|
|
|
mermaid: path.join(__dirname, 'node_modules/mermaid/dist/mermaid.min.js'),
|
|
|
|
handlebars: path.join(__dirname, 'node_modules/handlebars/dist/handlebars.min.js'),
|
|
|
|
"jquery-ui-resizable": path.join(__dirname, 'public/vendor/jquery-ui/jquery-ui.min.js'),
|
|
|
|
"gist-embed": path.join(__dirname, 'node_modules/gist-embed/gist-embed.min.js'),
|
2016-11-26 15:24:59 +00:00
|
|
|
"bootstrap-tooltip": path.join(__dirname, 'public/vendor/bootstrap/tooltip.min.js'),
|
2016-11-27 18:14:18 +00:00
|
|
|
"headjs": path.join(__dirname, 'node_modules/reveal.js/lib/js/head.min.js'),
|
2016-11-28 10:33:53 +00:00
|
|
|
"reveal-markdown": path.join(__dirname, 'public/js/reveal-markdown.js')
|
2016-10-13 00:56:56 +00:00
|
|
|
}
|
2016-10-11 07:45:00 +00:00
|
|
|
},
|
|
|
|
|
2016-10-13 00:56:02 +00:00
|
|
|
externals: {
|
2016-10-13 03:42:17 +00:00
|
|
|
"viz.js": "Viz",
|
|
|
|
"socket.io-client": "io",
|
|
|
|
"lodash": "_",
|
2016-10-13 07:13:03 +00:00
|
|
|
"jquery": "$",
|
2016-10-13 08:35:43 +00:00
|
|
|
"moment": "moment",
|
2016-10-14 01:21:41 +00:00
|
|
|
"handlebars": "Handlebars",
|
2016-11-26 15:13:02 +00:00
|
|
|
"highlight.js": "hljs",
|
|
|
|
"select2": "select2"
|
2016-10-13 00:56:02 +00:00
|
|
|
},
|
|
|
|
|
2016-10-11 07:45:00 +00:00
|
|
|
module: {
|
|
|
|
loaders: [{
|
|
|
|
test: /\.json$/,
|
|
|
|
loader: 'json-loader'
|
|
|
|
}, {
|
|
|
|
test: /\.css$/,
|
|
|
|
loader: ExtractTextPlugin.extract('style-loader', 'css-loader')
|
|
|
|
}, {
|
|
|
|
test: /\.scss$/,
|
|
|
|
loader: ExtractTextPlugin.extract('style-loader', 'sass-loader')
|
|
|
|
}, {
|
|
|
|
test: /\.less$/,
|
|
|
|
loader: ExtractTextPlugin.extract('style-loader', 'less-loader')
|
|
|
|
}, {
|
|
|
|
test: require.resolve("js-sequence-diagrams"),
|
|
|
|
loader: "imports?Raphael=raphael"
|
|
|
|
}, {
|
|
|
|
test: /\.eot(\?v=\d+\.\d+\.\d+)?$/,
|
|
|
|
loader: "file"
|
|
|
|
}, {
|
2016-11-26 15:21:02 +00:00
|
|
|
test: /\.(woff|woff2)(\?v=\d+\.\d+\.\d+)?$/,
|
2016-10-11 07:45:00 +00:00
|
|
|
loader: "url?prefix=font/&limit=5000"
|
|
|
|
}, {
|
|
|
|
test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/,
|
|
|
|
loader: "url?limit=10000&mimetype=application/octet-stream"
|
|
|
|
}, {
|
|
|
|
test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
|
|
|
|
loader: "url?limit=10000&mimetype=image/svg+xml"
|
2016-11-26 15:21:02 +00:00
|
|
|
}, {
|
|
|
|
test: /\.png(\?v=\d+\.\d+\.\d+)?$/,
|
|
|
|
loader: "url?limit=10000&mimetype=image/png"
|
|
|
|
}, {
|
|
|
|
test: /\.gif(\?v=\d+\.\d+\.\d+)?$/,
|
|
|
|
loader: "url?limit=10000&mimetype=image/gif"
|
2016-10-14 01:56:19 +00:00
|
|
|
}]
|
2016-10-11 07:45:00 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
node: {
|
|
|
|
fs: "empty"
|
|
|
|
}
|
|
|
|
};
|