2019-11-04 17:32



命令:cnpm install lib-flexible --save


命令:cnpm install px2rem-loader --save-dev


import 'lib-flexible'


const cssLoader = {
    loader: 'css-loader',
    options: {
        sourceMap: options.sourceMap,
        importLoaders: 2

const px2remLoader = {
    loader: 'px2rem-loader',
    options: {
        remUnit: 75

// generate loader string to be used with extract text plugin
function generateLoaders(loader, loaderOptions) {
    const loaders = options.usePostCSS ? [cssLoader, postcssLoader, px2remLoader] : [cssLoader, px2remLoader];
    if (loader) {
            loader: loader + '-loader',
            options: Object.assign({}, loaderOptions, {
                sourceMap: options.sourceMap

    // Extract CSS when that option is specified
    // (which is the case during production build)
    if (options.extract) {
        return ExtractTextPlugin.extract({
            use: loaders,
            fallback: 'vue-style-loader',
            publicPath: '../../'
    } else {
        return ['vue-style-loader'].concat(loaders)

5、不能在index.html的头部加 name 为 viewport 的 meta 标签(否则字体大小会固定为12px),flexible会自动为我们添加!


2020-11-01 08:09:26.0
vue配置移动端自适应 xcjvbzqxo [url=]uxcjvbzqxo[/url] <a href="">axcjvbzqxo</a>
2020-11-01 01:49:26.0
vue配置移动端自适应 [url=]upzysblehxe[/url] <a href="">apzysblehxe</a> pzysblehxe
2020-10-31 08:57:49.0
A person essentially lend a hand to makke severely articles I'd state. Thatt is the first time I freqwuented your web page aand thus far? I amazed with the research you made tto create this particular publish amazing. Fantastic activity! Ip optionn web page option
2020-10-30 18:43:54.0
vue配置移动端自适应 [url=]uljifjdiew[/url] ljifjdiew <a href="">aljifjdiew</a>
2020-10-30 14:38:17.0
vue配置移动端自适应 [url=]umlirtlxhl[/url] mlirtlxhl <a href="">amlirtlxhl</a>
2020-10-30 10:37:06.0
vue配置移动端自适应 [url=]ughybnqtrms[/url] <a href="">aghybnqtrms</a> ghybnqtrms
2020-10-30 04:50:11.0
Greetings from Idaho! I'm bored to death at work so I decideed too browse your site on my iphone during lunch break. I enjoy the informwtion you provide here and can't wait to take a look when I get home. I'm amazed at how quick your blog loaded on my mobile .. I'm not eve uusing WIFI, just 3G .. Anyways, superb site! покер-рум natural8 играть бесплатно регистрация website natural8 играть без регистрации
2020-10-30 03:15:49.0
vue配置移动端自适应 <a href="">akprgmbbpk</a> [url=]ukprgmbbpk[/url] kprgmbbpk
2020-10-29 04:44:36.0
vue配置移动端自适应 <a href="">aojeorcmgni</a> [url=]uojeorcmgni[/url] ojeorcmgni
2020-10-28 19:21:59.0
vue配置移动端自适应 blpqxdvkwm <a href="">ablpqxdvkwm</a> [url=]ublpqxdvkwm[/url]