Lobos / react-ui

A collection of components for React, base on bootstrap 4.0.
http://lobos.github.io/react-ui/
MIT License
1.63k stars 302 forks source link

npm run dev报app.js:1 Uncaught SyntaxError: Unexpected token < #86

Closed fhqdgv closed 7 years ago

fhqdgv commented 7 years ago

是不是这里引起的 app.get('/*', function (req, res) { res.sendFile(path.join(__dirname, 'docs/src/index.html')) }) 1

Lobos commented 7 years ago

demo里面的那个示例是要先配置webpack-dev-middleware的

app.use(require('webpack-dev-middleware')(compiler, {
  noInfo: true,
  publicPath: '/'
}));