What does “The code generator has deoptimised the styling of [some file] as it exceeds the max of “100KB”” mean?

I added a new npm package to my project and require it in one of my modules. Now I get this message from webpack, build modulesNote: The code generator has deoptimised the styling of “D:/path/to/project/node_modules/ramda/dist/ramda.js” as it exceeds the max of “100KB”. What does it mean? Do I need to take some action? 11 Answers … Read more

Webpack.config how to just copy the index.html to the dist folder

I am trying to automate assets going into /dist. I have the following config.js: module.exports = { context: __dirname + “/lib”, entry: { main: [ “./baa.ts” ] }, output: { path: __dirname + “/dist”, filename: “foo.js” }, devtool: “source-map”, module: { loaders: [ { test: /\.ts$/, loader: ‘awesome-typescript-loader’ }, { test: /\.css$/, loader: “style-loader!css-loader” } … Read more

Cannot find module ‘webpack/bin/config-yargs’

Getting error when running webpack-dev-server –config config/webpack.dev.js –progress –profile –watch –content-base src/. Here is the error log: module.js:442 throw err; ^ Error: Cannot find module ‘webpack/bin/config-yargs’ at Function.Module._resolveFilename (module.js:440:15) at Function.Module._load (module.js:388:25) at Module.require (module.js:468:17) at require (internal/module.js:20:19) at Module._compile (module.js:541:32) at Object.Module._extensions..js (module.js:550:10) at Module.load (module.js:458:32) at tryModuleLoad (module.js:417:12) at Function.Module._load (module.js:409:3) 31 Answers … Read more