diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-11-09 04:02:12 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-11-09 04:02:12 +0900 |
| commit | ba845f52186128bffbf8fc89cd24907e5a1e327d (patch) | |
| tree | d9679b4fdf7f681d772a7fed3231f63db5caea77 /webpack.config.ts | |
| parent | [Doc] Update docs (diff) | |
| download | sharkey-ba845f52186128bffbf8fc89cd24907e5a1e327d.tar.gz sharkey-ba845f52186128bffbf8fc89cd24907e5a1e327d.tar.bz2 sharkey-ba845f52186128bffbf8fc89cd24907e5a1e327d.zip | |
Clean up
Diffstat (limited to 'webpack.config.ts')
| -rw-r--r-- | webpack.config.ts | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/webpack.config.ts b/webpack.config.ts index 7d1f914c4e..ee1b59c950 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -6,7 +6,6 @@ import * as fs from 'fs'; import * as webpack from 'webpack'; import chalk from 'chalk'; const { VueLoaderPlugin } = require('vue-loader'); -const minifyHtml = require('html-minifier').minify; const WebpackOnBuildPlugin = require('on-build-webpack'); //const HardSourceWebpackPlugin = require('hard-source-webpack-plugin'); const ProgressBarPlugin = require('progress-bar-webpack-plugin'); @@ -18,20 +17,6 @@ const meta = require('./package.json'); const version = meta.clientVersion; const codename = meta.codename; -declare var global: { - collapseSpacesReplacement: any; -}; - -//#region Replacer definitions -global['collapseSpacesReplacement'] = (html: string) => { - return minifyHtml(html, { - collapseWhitespace: true, - collapseInlineTagWhitespace: true, - keepClosingSlash: true - }).replace(/\t/g, ''); -}; -//#endregion - const langs = Object.keys(locales); const isProduction = process.env.NODE_ENV == 'production'; @@ -122,14 +107,6 @@ module.exports = { } }, { loader: 'vue-svg-inline-loader' - }, { - loader: 'replace', - query: { - qs: [{ - search: /^<template>([\s\S]+?)\r?\n<\/template>/.toString(), - replace: 'collapseSpacesReplacement' - }] - } }] }, { test: /\.styl(us)?$/, @@ -199,7 +176,7 @@ module.exports = { } }, resolveLoader: { - modules: ['node_modules', './webpack/loaders'] + modules: ['node_modules'] }, cache: true, devtool: false, //'source-map', |