searchkit分页不显示放置位置"解决"使用webkit编写代码

时间:2017-01-28 08:33:55

标签: pagination searchkit

参考前面的问题

Searchkit分页不显示。 @ artem-timofieiev在这里分享代码:react searchkit with material-ui (pagination is-disabled)

我在哪里粘贴此代码?

resolve: {
     alias: {
     react: path.resolve('./node_modules/react'),
     lodash: path.resolve('./node_modules/lodash')
      }
    }

1 个答案:

答案 0 :(得分:0)

把它放在你的webpack配置中..主要来自基础

var path = require("path")
var webpack = require('webpack')

module.exports = {
  context: __dirname,

  entry: {
    // Add as many entry points as you have container-react-components here
    App: './reactjs/App',
    vendors: ['react'],
  },

  output: {
      path: path.resolve('./example/static/bundles/local/'),
      filename: "[name]-[hash].js"
  },

  externals: [
  ], // add all vendor libs

  plugins: [
    new webpack.optimize.CommonsChunkPlugin({ name: 'vendors', filename: 'vendors.bundle.js', minChunks: Infinity }),
  ], // add all common plugins here

  module: {
    loaders: [] // add all common loaders here
  },

  resolve: {
      alias: {
      react: path.resolve('./node_modules/react'),
     lodash: path.resolve('./node_modules/lodash')
   }
 },
}

...干杯