Skip to content
Permalink
Browse files
Chore: loaders → rules for webpack 2
  • Loading branch information
sapegin committed Jul 14, 2017
1 parent c39ba15 commit 5eeffe462b68d99431a3b0884f9a53f504aab68d
Showing with 8 additions and 8 deletions.
  1. +1 −1 docs/API.md
  2. +1 −1 docs/Configuration.md
  3. +1 −1 docs/Webpack.md
  4. +1 −1 examples/webpack/webpack.config.js
  5. +1 −1 scripts/__tests__/config.spec.js
  6. +1 −1 test/apps/basic/styleguide.config.js
  7. +1 −1 test/data/styleguide.config.js
  8. +1 −1 test/run.server.js
@@ -12,7 +12,7 @@ const styleguide = styleguidist({
components: './lib/components/**/*.js',
webpackConfig: {
module: {
loaders: [
rules: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
@@ -403,7 +403,7 @@ module.exports = {
resolve: {
extensions: ['.es6']
},
loaders: [
rules: [
{
test: /\.scss$/,
loaders: ['style-loader', 'css-loader', 'sass-loader?precision=10']
@@ -49,7 +49,7 @@ Add a `webpackConfig` section to your `styleguide.config.js`:
module.exports = {
webpackConfig: {
module: {
loaders: [
rules: [
// Babel loader, will use your project’s .babelrc
{
test: /\.jsx?$/,
@@ -7,7 +7,7 @@ module.exports = {
path: path.resolve(__dirname, 'build'),
},
module: {
loaders: [
rules: [
{
test: /\.(js|jsx)$/,
include: path.resolve(__dirname, 'src'),
@@ -165,7 +165,7 @@ it('should return webpackConfig with user webpack config', () => {
expect(result.webpackConfig).toEqual(
expect.objectContaining({
module: {
loaders: expect.any(Array),
rules: expect.any(Array),
},
})
);
@@ -8,7 +8,7 @@ module.exports = {
components: './components/**/[A-Z]*.js',
webpackConfig: {
module: {
loaders: [
rules: [
{
test: /\.jsx?$/,
include: dir,
@@ -8,7 +8,7 @@ module.exports = {
components: './components/**/[A-Z]*.js',
webpackConfig: {
module: {
loaders: [
rules: [
{
test: /\.jsx?$/,
include: dir,
@@ -9,7 +9,7 @@ styleguidist({
components: path.resolve(dir, 'components/**/[A-Z]*.js'),
webpackConfig: {
module: {
loaders: [
rules: [
{
test: /\.jsx?$/,
include: dir,

0 comments on commit 5eeffe4

Please sign in to comment.