mobile css setup

This commit is contained in:
realaravinth
2021-05-25 20:40:57 +05:30
parent 90fa5ebd19
commit 80352fb390
19 changed files with 236 additions and 20 deletions

View File

@@ -3,13 +3,19 @@ const path = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
const mobileCss = (new MiniCssExtractPlugin().options.filename = 'mobile.css');
const mainCss = (new MiniCssExtractPlugin().options.filename = 'main.css');
module.exports = {
devtool: 'inline-source-map',
mode: 'development',
//mode: 'production',
entry: './templates/index.ts',
entry: {
bundle: './templates/index.ts',
mobile: './templates/mobile.ts',
},
output: {
filename: 'bundle.js',
filename: '[name].js',
path: path.resolve(__dirname, './static-assets/bundle/'),
},
module: {
@@ -32,6 +38,7 @@ module.exports = {
},
],
},
],
},
resolve: {