2018-10-18 07:50:45 -04:00
|
|
|
const webpack = require('webpack')
|
|
|
|
const path = require('path')
|
|
|
|
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
|
|
|
const CopyWebpackPlugin = require('copy-webpack-plugin')
|
2018-07-02 16:24:56 -04:00
|
|
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
|
2023-02-19 16:04:26 -05:00
|
|
|
const { CleanWebpackPlugin } = require('clean-webpack-plugin')
|
2016-10-11 03:45:00 -04:00
|
|
|
|
2018-04-16 15:08:24 -04:00
|
|
|
// Fix possible nofile-issues
|
2018-10-18 07:50:45 -04:00
|
|
|
const fs = require('fs')
|
|
|
|
const gracefulFs = require('graceful-fs')
|
2018-04-16 15:08:24 -04:00
|
|
|
gracefulFs.gracefulify(fs)
|
|
|
|
|
2016-10-11 03:45:00 -04:00
|
|
|
module.exports = {
|
2018-10-10 15:54:27 -04:00
|
|
|
name: 'app',
|
2017-03-08 13:41:05 -05:00
|
|
|
plugins: [
|
2023-02-19 16:04:26 -05:00
|
|
|
new CleanWebpackPlugin({
|
|
|
|
cleanOnceBeforeBuildPatterns: [
|
|
|
|
'**/*',
|
|
|
|
'!htmlExport*',
|
|
|
|
'!htmlexport*'
|
|
|
|
]
|
|
|
|
}),
|
2017-03-08 13:41:05 -05:00
|
|
|
new webpack.ProvidePlugin({
|
|
|
|
Visibility: 'visibilityjs',
|
|
|
|
Cookies: 'js-cookie',
|
|
|
|
key: 'keymaster',
|
|
|
|
$: 'jquery',
|
|
|
|
jQuery: 'jquery',
|
|
|
|
'window.jQuery': 'jquery',
|
|
|
|
'moment': 'moment',
|
2021-06-03 16:54:03 -04:00
|
|
|
CodeMirror: 'codemirror/lib/codemirror.js'
|
2017-03-08 13:41:05 -05: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'),
|
2018-08-27 07:37:42 -04:00
|
|
|
inject: false,
|
|
|
|
chunksSortMode: 'manual'
|
2017-03-08 13:41:05 -05:00
|
|
|
}),
|
|
|
|
new HtmlWebpackPlugin({
|
|
|
|
template: 'public/views/includes/scripts.ejs',
|
|
|
|
chunks: ['common', 'index-pack'],
|
|
|
|
filename: path.join(__dirname, 'public/views/build/index-pack-scripts.ejs'),
|
2018-08-27 07:37:42 -04:00
|
|
|
inject: false,
|
|
|
|
chunksSortMode: 'manual'
|
2017-03-08 13:41:05 -05: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'),
|
2018-08-27 07:37:42 -04:00
|
|
|
inject: false,
|
|
|
|
chunksSortMode: 'manual'
|
2017-03-08 13:41:05 -05:00
|
|
|
}),
|
|
|
|
new HtmlWebpackPlugin({
|
|
|
|
template: 'public/views/includes/scripts.ejs',
|
|
|
|
chunks: ['common', 'cover-pack'],
|
|
|
|
filename: path.join(__dirname, 'public/views/build/cover-pack-scripts.ejs'),
|
2018-08-27 07:37:42 -04:00
|
|
|
inject: false,
|
|
|
|
chunksSortMode: 'manual'
|
2017-03-08 13:41:05 -05: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'),
|
2018-08-27 07:37:42 -04:00
|
|
|
inject: false,
|
|
|
|
chunksSortMode: 'manual'
|
2017-03-08 13:41:05 -05:00
|
|
|
}),
|
|
|
|
new HtmlWebpackPlugin({
|
|
|
|
template: 'public/views/includes/scripts.ejs',
|
|
|
|
chunks: ['common', 'pretty-pack'],
|
|
|
|
filename: path.join(__dirname, 'public/views/build/pretty-pack-scripts.ejs'),
|
2018-08-27 07:37:42 -04:00
|
|
|
inject: false,
|
|
|
|
chunksSortMode: 'manual'
|
2017-03-08 13:41:05 -05: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'),
|
2018-08-27 07:37:42 -04:00
|
|
|
inject: false,
|
|
|
|
chunksSortMode: 'manual'
|
2017-03-08 13:41:05 -05:00
|
|
|
}),
|
|
|
|
new HtmlWebpackPlugin({
|
|
|
|
template: 'public/views/includes/scripts.ejs',
|
|
|
|
chunks: ['slide-pack'],
|
|
|
|
filename: path.join(__dirname, 'public/views/build/slide-pack-scripts.ejs'),
|
|
|
|
inject: false
|
|
|
|
}),
|
2020-08-13 15:49:34 -04:00
|
|
|
new CopyWebpackPlugin({
|
|
|
|
patterns: [
|
|
|
|
{
|
|
|
|
context: path.join(__dirname, 'node_modules/mathjax/unpacked'),
|
|
|
|
from: '**/*',
|
|
|
|
globOptions: {
|
|
|
|
dot: false
|
|
|
|
},
|
|
|
|
to: 'MathJax/'
|
2017-03-08 13:41:05 -05:00
|
|
|
},
|
2020-08-13 15:49:34 -04:00
|
|
|
{
|
|
|
|
context: path.join(__dirname, 'node_modules/mathjax/fonts'),
|
|
|
|
from: '**/*',
|
|
|
|
globOptions: {
|
|
|
|
dot: false
|
|
|
|
},
|
|
|
|
to: 'fonts/'
|
2019-10-25 15:49:30 -04:00
|
|
|
},
|
2020-08-13 15:49:34 -04:00
|
|
|
{
|
|
|
|
context: path.join(__dirname, 'node_modules/emojify.js'),
|
|
|
|
from: 'dist/**/*',
|
|
|
|
globOptions: {
|
|
|
|
dot: false
|
|
|
|
},
|
|
|
|
to: 'emojify.js/'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
context: path.join(__dirname, 'node_modules/reveal.js'),
|
|
|
|
from: 'js',
|
|
|
|
to: 'reveal.js/js'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
context: path.join(__dirname, 'node_modules/reveal.js'),
|
|
|
|
from: 'css',
|
|
|
|
to: 'reveal.js/css'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
context: path.join(__dirname, 'node_modules/reveal.js'),
|
|
|
|
from: 'lib',
|
|
|
|
to: 'reveal.js/lib'
|
2017-03-08 13:41:05 -05:00
|
|
|
},
|
2020-08-13 15:49:34 -04:00
|
|
|
{
|
|
|
|
context: path.join(__dirname, 'node_modules/reveal.js'),
|
|
|
|
from: 'plugin',
|
|
|
|
to: 'reveal.js/plugin'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
2020-12-21 06:31:34 -05:00
|
|
|
new MiniCssExtractPlugin({
|
|
|
|
filename: '[name].[contenthash].css',
|
|
|
|
chunkFilename: '[id].[contenthash].css'
|
|
|
|
})
|
2017-03-08 13:41:05 -05:00
|
|
|
],
|
2018-07-02 16:24:56 -04:00
|
|
|
|
2017-03-08 13:41:05 -05:00
|
|
|
entry: {
|
|
|
|
'font-pack': path.join(__dirname, 'public/css/font.css'),
|
|
|
|
common: [
|
2021-02-03 16:39:19 -05:00
|
|
|
'expose-loader?exposes[]=$&exposes[]=jQuery!jquery',
|
2017-03-08 13:41:05 -05:00
|
|
|
'velocity-animate',
|
2021-02-03 16:22:11 -05:00
|
|
|
'imports-loader?imports=default|jquery|$!jquery-mousewheel',
|
2017-03-08 13:41:05 -05:00
|
|
|
'bootstrap'
|
2016-10-11 03:45:00 -04:00
|
|
|
],
|
2017-03-08 13:41:05 -05:00
|
|
|
cover: [
|
|
|
|
'babel-polyfill',
|
|
|
|
path.join(__dirname, 'public/js/cover.js')
|
|
|
|
],
|
|
|
|
'cover-styles-pack': [
|
|
|
|
path.join(__dirname, 'node_modules/bootstrap/dist/css/bootstrap.min.css'),
|
2018-10-05 15:51:54 -04:00
|
|
|
path.join(__dirname, 'node_modules/fork-awesome/css/fork-awesome.min.css'),
|
2017-03-08 13:41:05 -05:00
|
|
|
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': [
|
|
|
|
'babel-polyfill',
|
|
|
|
'bootstrap-validator',
|
2021-02-03 16:39:19 -05:00
|
|
|
'expose-loader?exposes=select2!select2',
|
|
|
|
'expose-loader?exposes=moment!moment',
|
2017-03-08 13:41:05 -05:00
|
|
|
path.join(__dirname, 'public/js/cover.js')
|
|
|
|
],
|
|
|
|
index: [
|
|
|
|
'babel-polyfill',
|
2021-02-03 16:39:19 -05:00
|
|
|
'expose-loader?exposes=LZString!lz-string',
|
2017-03-08 13:41:05 -05:00
|
|
|
'flowchart.js',
|
|
|
|
'js-sequence-diagrams',
|
2021-02-03 16:39:19 -05:00
|
|
|
'expose-loader?exposes=RevealMarkdown!reveal-markdown',
|
2017-03-08 13:41:05 -05:00
|
|
|
path.join(__dirname, 'public/js/index.js')
|
|
|
|
],
|
|
|
|
'index-styles': [
|
|
|
|
path.join(__dirname, 'public/vendor/codemirror-spell-checker/spell-checker.min.css'),
|
|
|
|
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'),
|
2021-02-12 17:39:39 -05:00
|
|
|
path.join(__dirname, 'node_modules/spin.js/spin.css'),
|
2017-03-08 13:41:05 -05:00
|
|
|
path.join(__dirname, 'public/css/github-extract.css'),
|
|
|
|
path.join(__dirname, 'public/vendor/showup/showup.css'),
|
|
|
|
path.join(__dirname, 'public/css/mermaid.css'),
|
|
|
|
path.join(__dirname, 'public/css/markdown.css'),
|
|
|
|
path.join(__dirname, 'public/css/slide-preview.css')
|
|
|
|
],
|
|
|
|
'index-styles-pack': [
|
|
|
|
path.join(__dirname, 'node_modules/bootstrap/dist/css/bootstrap.min.css'),
|
2018-10-05 15:51:54 -04:00
|
|
|
path.join(__dirname, 'node_modules/fork-awesome/css/fork-awesome.min.css'),
|
2017-03-08 13:41:05 -05:00
|
|
|
path.join(__dirname, 'public/css/bootstrap-social.css'),
|
2018-10-04 14:01:01 -04:00
|
|
|
path.join(__dirname, 'node_modules/ionicons/css/ionicons.min.css')
|
2017-03-08 13:41:05 -05:00
|
|
|
],
|
|
|
|
'index-pack': [
|
|
|
|
'babel-polyfill',
|
|
|
|
'bootstrap-validator',
|
2021-02-03 16:39:19 -05:00
|
|
|
'expose-loader?exposes=jsyaml!js-yaml',
|
|
|
|
'expose-loader?exposes=moment!moment',
|
|
|
|
'expose-loader?exposes=emojify!emojify.js',
|
|
|
|
'expose-loader?exposes=LZString!lz-string',
|
2017-03-08 13:41:05 -05:00
|
|
|
'flowchart.js',
|
|
|
|
'js-sequence-diagrams',
|
2021-02-03 16:39:19 -05:00
|
|
|
'expose-loader?exposes=io!socket.io-client',
|
|
|
|
'expose-loader?exposes=RevealMarkdown!reveal-markdown',
|
2017-03-08 13:41:05 -05:00
|
|
|
path.join(__dirname, 'public/js/index.js')
|
|
|
|
],
|
|
|
|
pretty: [
|
|
|
|
'babel-polyfill',
|
|
|
|
'flowchart.js',
|
|
|
|
'js-sequence-diagrams',
|
2021-02-03 16:39:19 -05:00
|
|
|
'expose-loader?exposes=RevealMarkdown!reveal-markdown',
|
2017-03-08 13:41:05 -05: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'),
|
|
|
|
path.join(__dirname, 'public/css/markdown.css'),
|
|
|
|
path.join(__dirname, 'public/css/slide-preview.css')
|
|
|
|
],
|
|
|
|
'pretty-styles-pack': [
|
|
|
|
path.join(__dirname, 'node_modules/bootstrap/dist/css/bootstrap.min.css'),
|
2018-10-05 15:51:54 -04:00
|
|
|
path.join(__dirname, 'node_modules/fork-awesome/css/fork-awesome.min.css'),
|
2018-10-04 14:01:01 -04:00
|
|
|
path.join(__dirname, 'node_modules/ionicons/css/ionicons.min.css')
|
2017-03-08 13:41:05 -05:00
|
|
|
],
|
|
|
|
'pretty-pack': [
|
|
|
|
'babel-polyfill',
|
2021-02-03 16:39:19 -05:00
|
|
|
'expose-loader?exposes=jsyaml!js-yaml',
|
|
|
|
'expose-loader?exposes=moment!moment',
|
|
|
|
'expose-loader?exposes=emojify!emojify.js',
|
2017-03-08 13:41:05 -05:00
|
|
|
'flowchart.js',
|
|
|
|
'js-sequence-diagrams',
|
2021-02-03 16:39:19 -05:00
|
|
|
'expose-loader?exposes=RevealMarkdown!reveal-markdown',
|
2017-03-08 13:41:05 -05:00
|
|
|
path.join(__dirname, 'public/js/pretty.js')
|
|
|
|
],
|
|
|
|
slide: [
|
|
|
|
'babel-polyfill',
|
|
|
|
'bootstrap-tooltip',
|
|
|
|
'flowchart.js',
|
|
|
|
'js-sequence-diagrams',
|
2021-02-03 16:39:19 -05:00
|
|
|
'expose-loader?exposes=RevealMarkdown!reveal-markdown',
|
2017-03-08 13:41:05 -05:00
|
|
|
path.join(__dirname, 'public/js/slide.js')
|
|
|
|
],
|
|
|
|
'slide-styles': [
|
|
|
|
path.join(__dirname, 'public/vendor/bootstrap/tooltip.min.css'),
|
|
|
|
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': [
|
2018-10-05 15:51:54 -04:00
|
|
|
path.join(__dirname, 'node_modules/fork-awesome/css/fork-awesome.min.css'),
|
2018-10-04 14:01:01 -04:00
|
|
|
path.join(__dirname, 'node_modules/ionicons/css/ionicons.min.css')
|
2017-03-08 13:41:05 -05:00
|
|
|
],
|
|
|
|
'slide-pack': [
|
|
|
|
'babel-polyfill',
|
2021-02-03 16:39:19 -05:00
|
|
|
'expose-loader?exposes[]=$&exposes[]=jQuery!jquery',
|
2017-03-08 13:41:05 -05:00
|
|
|
'velocity-animate',
|
2021-02-03 16:22:11 -05:00
|
|
|
'imports-loader?imports=default|jquery|$!jquery-mousewheel',
|
2017-03-08 13:41:05 -05:00
|
|
|
'bootstrap-tooltip',
|
2021-02-03 16:39:19 -05:00
|
|
|
'expose-loader?exposes=jsyaml!js-yaml',
|
|
|
|
'expose-loader?exposes=moment!moment',
|
|
|
|
'expose-loader?exposes=emojify!emojify.js',
|
2017-03-08 13:41:05 -05:00
|
|
|
'flowchart.js',
|
|
|
|
'js-sequence-diagrams',
|
2021-02-03 16:39:19 -05:00
|
|
|
'expose-loader?exposes=Reveal!reveal.js',
|
|
|
|
'expose-loader?exposes=RevealMarkdown!reveal-markdown',
|
2017-03-08 13:41:05 -05:00
|
|
|
path.join(__dirname, 'public/js/slide.js')
|
|
|
|
]
|
|
|
|
},
|
2016-10-11 03:45:00 -04:00
|
|
|
|
2017-03-08 13:41:05 -05:00
|
|
|
output: {
|
|
|
|
path: path.join(__dirname, 'public/build'),
|
2019-12-19 12:00:51 -05:00
|
|
|
publicPath: 'build/',
|
2018-09-02 04:57:38 -04:00
|
|
|
filename: '[name].js'
|
2017-03-08 13:41:05 -05:00
|
|
|
},
|
2016-10-11 03:45:00 -04:00
|
|
|
|
2017-03-08 13:41:05 -05:00
|
|
|
resolve: {
|
2018-07-02 16:24:56 -04:00
|
|
|
modules: ['node_modules'],
|
|
|
|
extensions: ['.js'],
|
2017-03-08 13:41:05 -05:00
|
|
|
alias: {
|
|
|
|
'bootstrap-tooltip': path.join(__dirname, 'public/vendor/bootstrap/tooltip.min.js'),
|
2017-03-26 08:39:07 -04:00
|
|
|
'reveal-markdown': path.join(__dirname, 'public/js/reveal-markdown.js'),
|
2018-03-06 08:38:46 -05:00
|
|
|
raphael: path.join(__dirname, 'node_modules/raphael/raphael.no-deps.js')
|
2017-03-08 13:41:05 -05:00
|
|
|
}
|
|
|
|
},
|
2016-10-12 20:56:02 -04:00
|
|
|
|
2017-03-08 13:41:05 -05:00
|
|
|
externals: {
|
|
|
|
'socket.io-client': 'io',
|
|
|
|
'jquery': '$',
|
|
|
|
'moment': 'moment',
|
|
|
|
'select2': 'select2'
|
|
|
|
},
|
2016-10-11 03:45:00 -04:00
|
|
|
|
2017-03-08 13:41:05 -05:00
|
|
|
module: {
|
2021-06-03 16:54:03 -04:00
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: require.resolve(path.join(__dirname, 'public/vendor/codemirror-spell-checker/spell-checker.min.js')),
|
|
|
|
use: {
|
|
|
|
loader: 'imports-loader',
|
2020-08-13 15:49:34 -04:00
|
|
|
options: {
|
2021-06-03 16:54:03 -04:00
|
|
|
imports: ['default codemirror CodeMirror']
|
2020-08-13 15:49:34 -04:00
|
|
|
}
|
2021-06-03 16:54:03 -04:00
|
|
|
}
|
|
|
|
},
|
2021-06-06 12:17:52 -04:00
|
|
|
{
|
|
|
|
test: require.resolve(path.join(__dirname, 'public/vendor/ot/ot.min.js')),
|
|
|
|
use: {
|
|
|
|
loader: 'exports-loader',
|
|
|
|
options: {
|
|
|
|
type: 'commonjs',
|
|
|
|
exports: ['ot']
|
|
|
|
}
|
|
|
|
},
|
|
|
|
parser: {
|
|
|
|
amd: false
|
|
|
|
}
|
|
|
|
},
|
2021-06-04 15:36:15 -04:00
|
|
|
{
|
|
|
|
// Idle.js must be imported as CommonJS, as its AMD export is broken
|
|
|
|
test: require.resolve('Idle.Js'),
|
|
|
|
parser: {
|
|
|
|
amd: false
|
|
|
|
}
|
|
|
|
},
|
2021-06-03 16:54:03 -04:00
|
|
|
{
|
|
|
|
test: /\.js$/,
|
|
|
|
use: [{ loader: 'babel-loader' }],
|
|
|
|
exclude: [/node_modules/, /public\/vendor/]
|
|
|
|
}, {
|
|
|
|
test: /\.css$/,
|
|
|
|
use: [
|
|
|
|
{
|
|
|
|
loader: MiniCssExtractPlugin.loader,
|
|
|
|
options: {
|
|
|
|
publicPath: '',
|
|
|
|
}
|
|
|
|
},
|
|
|
|
'css-loader'
|
|
|
|
]
|
|
|
|
}, {
|
|
|
|
test: /\.less$/,
|
|
|
|
use: [
|
|
|
|
MiniCssExtractPlugin.loader,
|
|
|
|
{
|
|
|
|
loader: 'css-loader',
|
|
|
|
options: {
|
|
|
|
importLoaders: 1
|
|
|
|
}
|
|
|
|
},
|
|
|
|
'less-loader'
|
|
|
|
]
|
|
|
|
}, {
|
|
|
|
test: require.resolve('js-sequence-diagrams'),
|
|
|
|
use: [{
|
|
|
|
loader: 'imports-loader',
|
2018-07-02 16:24:56 -04:00
|
|
|
options: {
|
2021-06-03 16:54:03 -04:00
|
|
|
imports: ['default lodash _', 'default raphael Raphael', 'default eve eve']
|
2018-07-02 16:24:56 -04:00
|
|
|
}
|
2021-06-03 16:54:03 -04:00
|
|
|
}]
|
|
|
|
}, {
|
|
|
|
test: /\.eot(\?v=\d+\.\d+\.\d+)?$/,
|
|
|
|
use: [{ loader: 'file-loader' }]
|
|
|
|
}, {
|
|
|
|
test: /\.html$/,
|
|
|
|
use: [{ loader: 'string-loader' }]
|
|
|
|
}, {
|
|
|
|
test: /\.(woff|woff2)(\?v=\d+\.\d+\.\d+)?$/,
|
|
|
|
use: [{
|
|
|
|
loader: 'url-loader',
|
|
|
|
options: { prefix: 'font/', limit: '5000' }
|
|
|
|
}]
|
|
|
|
}, {
|
|
|
|
test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/,
|
|
|
|
use: [{
|
|
|
|
loader: 'url-loader',
|
|
|
|
options: { limit: '5000', mimetype: 'application/octet-stream' }
|
|
|
|
}]
|
|
|
|
}, {
|
|
|
|
test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
|
|
|
|
use: [{
|
|
|
|
loader: 'url-loader',
|
|
|
|
options: { limit: '10000', mimetype: 'svg+xml' }
|
|
|
|
}]
|
|
|
|
}, {
|
|
|
|
test: /\.png(\?v=\d+\.\d+\.\d+)?$/,
|
|
|
|
use: [{
|
|
|
|
loader: 'url-loader',
|
|
|
|
options: { limit: '10000', mimetype: 'image/png' }
|
|
|
|
}]
|
|
|
|
}, {
|
|
|
|
test: /\.gif(\?v=\d+\.\d+\.\d+)?$/,
|
|
|
|
use: [{
|
|
|
|
loader: 'url-loader',
|
|
|
|
options: { limit: '10000', mimetype: 'image/gif' }
|
|
|
|
}]
|
2018-08-27 07:37:42 -04:00
|
|
|
}]
|
2017-03-08 13:41:05 -05:00
|
|
|
},
|
|
|
|
node: {
|
|
|
|
fs: 'empty'
|
2017-03-12 14:09:52 -04:00
|
|
|
},
|
2017-03-12 04:53:04 -04:00
|
|
|
|
2017-03-12 14:09:52 -04:00
|
|
|
stats: {
|
|
|
|
assets: false
|
2017-03-08 13:41:05 -05:00
|
|
|
}
|
|
|
|
}
|