doumao1887 2018-02-28 08:07
浏览 96

在webpack中导入数据库

I am new in webpack development and want to ask is it possible to import database in webpack.config.js

In My config js file I just want to change the filename dynamic and every user login with mysql and they will see different HtmlWebpack with different CSS and images that they save before.

`new HtmlWebpackPlugin({ template: "html/index.html", filename: __dirname + "/index.html"

new CopyWebpackPlugin([
        {from: 'assets/css/medium-bootstrap.css', to: __dirname + '/build/elements/css/medium-bootstrap.css'}
    ])`

Can the filename index.html can change dynamically to [html page value from mysql database] ?

  1. Can it be use with ajax?
  2. Can it be use with session or cookies from client?
  3. Is the database plugin I can import to webpack.config.js?

Thanks all in advance. Kelly

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 微信会员卡接入微信支付商户号收款
    • ¥15 如何获取烟草零售终端数据
    • ¥15 数学建模招标中位数问题
    • ¥15 phython路径名过长报错 不知道什么问题
    • ¥15 深度学习中模型转换该怎么实现
    • ¥15 HLs设计手写数字识别程序编译通不过
    • ¥15 Stata外部命令安装问题求帮助!
    • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
    • ¥15 TYPCE母转母,插入认方向
    • ¥15 如何用python向钉钉机器人发送可以放大的图片?