From 48b1d6ca1a0e3f1e2d84c62e5879dfb762fb307a Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 2 Jun 2020 01:01:15 +0800 Subject: Upgrade packages. --- Timeline/ClientApp/webpack.common.js | 60 ++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Timeline/ClientApp/webpack.common.js (limited to 'Timeline/ClientApp/webpack.common.js') diff --git a/Timeline/ClientApp/webpack.common.js b/Timeline/ClientApp/webpack.common.js new file mode 100644 index 00000000..4a0527ea --- /dev/null +++ b/Timeline/ClientApp/webpack.common.js @@ -0,0 +1,60 @@ +const autoprefixer = require('autoprefixer'); +const htmlWebpackTemplate = require('html-webpack-template'); + +const commonRules = [ + { + test: /\.css$/, + use: ['style-loader', 'css-loader'], + }, + { + test: /\.(scss)$/, + use: [ + 'style-loader', + 'css-loader', + { + loader: 'postcss-loader', + options: { + plugins: function () { + return [autoprefixer]; + }, + }, + }, + 'sass-loader', + ], + }, + { + test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot)$/i, + use: [ + { + loader: 'url-loader', + options: { + limit: 8192, + }, + }, + ], + }, +]; + +const htmlCommonConfig = { + inject: false, + template: htmlWebpackTemplate, + + appMountId: 'app', + mobile: true, + + headHtmlSnippet: ` + + + + + + + + `, + title: 'Timeline', +}; + +module.exports = { + commonRules, + htmlCommonConfig, +}; -- cgit v1.2.3