javascript - Webpack: 'bindings is not defined' -
i'm building application nodejs (server) , reactjs (client).. fine, have problem webpack.. after run webpack have error in browser console:
uncaught referenceerror: bindings not defined
i've got no idea issue.. ?
here webpack config:
var extracttextplugin = require('extract-text-webpack-plugin') var webpack = require('webpack') module.exports = { entry: [ 'babel-polyfill', './src/client/index.js' ], devtool: 'source-map', output: { path: './src/static/js/', filename: 'bundle.js' }, module: { loaders: [{ exclude: /node_modules/, loader: 'babel-loader', query: { presets: ['react', 'es2015', 'stage-1'] } }, { test: /\.scss$/, loader: extracttextplugin.extract('css!sass') }, { test: /\.json$/, loader: "json-loader" }], noparse: /lie\.js$|\/leveldown\// }, node: { net: 'empty', fs: 'empty', dns: 'empty' }, resolve: { extensions: ['', '.js', '.jsx'] }, plugins: [ new extracttextplugin('../css/style.css', { allchunks: true }), new webpack.contextreplacementplugin(/bindings$/, /^$/) ], externals: ["bindings"] }
Comments
Post a Comment