Closed timothyjlaurent closed 9 years ago
here is my webpack.config.js that builds correctly when running webpack
:
1 module.exports= {
2
3 resolve: {
4 extensions: ['', '.js', '.jsx'],
5 alias : {
6 "kendo": "kendo-ui-webpack"
7 }
8 },
9 entry: './client.js',
10 output: {
11 path: './build/js',
12 publicPath: '/public/js/',
13 filename: '[name].js'
14 },
15 module: {
16 loaders: [
17 { test: /\.css$/, loader: 'style!css' },
18 { test: /react\-autocomplete/, loader: 'jsx-loader' },
19 { test: /\.jsx?/, loader: 'jsx-loader' },
20 { test: /\.json$/, loader: 'json-loader'},
21 { test: /kendo\-ui\-core[\///].*\.js$/, loader: "imports?jQuery=jquery" }
22 ]
23 },
24 stats: {
25 colors: true
26 },
27 devtool: 'source-map',
28 watch: true,
29 keepalive: true
30
31 }
32
Looks like a duplicate of https://github.com/yahoo/generator-fluxible/issues/6#issuecomment-75348123, closing this.
I have been trying to get react-autcomplete installed in a yo fluxible project.
React-autocomplete is uses the .js extension so I changed the loader to
Whenever I do this I get