We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
用antd-init出来的新工程,在webpack中加入html plugin,index.html删除js css的引入
webpack配置如下
var webpack = require('atool-build/lib/webpack'); var HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = function(webpackConfig) { webpackConfig.module.loaders.forEach(function(loader) { if (loader.loader === 'babel') { // https://github.com/ant-design/babel-plugin-antd loader.query.plugins.push('antd'); } return loader; }); webpackConfig.plugins.push( new HtmlWebpackPlugin({ filename: 'index.html', template: 'index.html', }) ); // Fix ie8 compatibility webpackConfig.module.loaders.unshift({ test: /\.jsx?$/, loader: 'es3ify', }); return webpackConfig; };
报错: DateTHead.js:15Uncaught TypeError: Super expression must either be null or a function, not undefined
The text was updated successfully, but these errors were encountered:
html-webpack-plugin 1.7.0 没问题, 2有问题
Sorry, something went wrong.
No branches or pull requests
用antd-init出来的新工程,在webpack中加入html plugin,index.html删除js css的引入
webpack配置如下
报错:
DateTHead.js:15Uncaught TypeError: Super expression must either be null or a function, not undefined
The text was updated successfully, but these errors were encountered: