mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 01:55:40 +00:00
mobile css setup
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user