cnpm install --save-dev swiper
import "./assets/iconfont/iconfont.css";
npm run dev
npm run build
cnpm install --save-dev style-loader
webpack.config.js
{
test: /\.(eot|svg|ttf|woff|woff2)(\?\S*)?$/,
loader: 'file-loader',
options: {
name: 'fonts/[name].[ext]?[hash]' //目标文件夹
}
}, //添加对字体文件的支持。