v0.13.0
Highlights
Webpack-dev-server and images from css
Fixed issue with image from stylesheets not being loaded when using webpack-dev-server.
Releated issue in style-loader: webpack/style-loader#96
Support react@15.4 in react-hot-loader
In React 15.4.0 facebook has completely removed ReactDOM from React package itself. React-Hot-Loader depends on some internal libs inside react package which made it imposible to use since version 15.4 arrived. To work around this issue I had to make some changes which led to only support react 15.4+ in aik.
Related links:
https://facebook.github.io/react/blog/2016/11/16/react-v15.4.0.html
gaearon/react-hot-loader#417 (comment)
Usage Statistic
Since this version aik starts collecting anonymous statistic using yeoman's insight module.
It's optin feature. Aik will ask you about collecting statistic when you first run it after update:
That will help me better understand what flags are being used most. And how many people actually uses Aik.
Relative Module Pathes
Let's assume such project structure:
├── index.js
└── components
├── comp1
└── comp1.js
└── comp2
└── comp2.js
And if you want to import comp2.js from comp1.js you can do it using both these ways:
// comp1.js
// Import relative to the index.js
import comp2 from 'components/comp2/comp2';
// Or import relative to comp1.js
import comp2 from '../comp2/comp2';Choose the way you like more.
CHANGELOG
Bug Fixes
- react-hot-loader: Fix issue with public-path helper and react-hot-loader (13e933b)
- react-hot-loader: Support react 15.4.x (203ad3a)
- webpack: Images are not being loaded using webpack-dev-server (84f8a68)
- webpack: Use fork of npm-install-webpack plugin (a63bb8d), closes #119
