From b78d21a524f7a11ad29b4bd230f23825f80c3ed7 Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 26 Jul 2020 15:02:55 +0800 Subject: Merge front end repo --- 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..bed968e1 --- /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|sass)$/, + 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