小编Ibi*_*Tan的帖子

如何解决Webpack 2 loaderUtils.parseQuery()警告?

当我使用Webpack2编译我的文件时.它显示以下警告:

"loaderUtils.parseQuery()收到一个非字符串值,这可能有问题,请参阅https://github.com/webpack/loader-utils/issues/56 "

我检查了github页面,但没有找到如何解决这个问题.这是我的配置:

// webpack 2 configuration
// https://webpack.js.org/guides/migrating/

const webpack = require('webpack');
const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');

module.exports = {
    watch: true,
  inline: true,
  resolve: {
    modules: [
      'node_modules',
      path.resolve(__dirname, './app'),
    ],
    //http://webpack.github.io/docs/configuration.html#resolve-alias
    alias: {
      lib: path.resolve('./lib'),
      res: path.resolve('./res'),
      style: path.resolve('./style'),
      //make sure it can be load by 'jquery'
      jquery$: 'jquery',
      // 01/26/2017 http://isotope.metafizzy.co/extras.html#webpack
      masonry: 'masonry-layout',
      isotope: 'isotope-layout'
    },
    extensions: ['.js', '.json', '.jsx', '.css'],
  },
  devtool: 'source-map', 
  target: 'web', // enum

    entry: {
    // …
Run Code Online (Sandbox Code Playgroud)

babeljs webpack-dev-server webpack-2

4
推荐指数
1
解决办法
3969
查看次数

标签 统计

babeljs ×1

webpack-2 ×1

webpack-dev-server ×1