diff --git a/examples/with-asset-imports/.babelrc b/examples/with-asset-imports/.babelrc deleted file mode 100644 index 987b6338..00000000 --- a/examples/with-asset-imports/.babelrc +++ /dev/null @@ -1,12 +0,0 @@ -{ - "presets": ["next/babel"], - "plugins": [ - [ - "transform-assets-import-to-string", - { - "baseDir": "static", - "baseUri": "/" - } - ] - ] -} diff --git a/examples/with-asset-imports/next.config.js b/examples/with-asset-imports/next.config.js new file mode 100644 index 00000000..5113d67f --- /dev/null +++ b/examples/with-asset-imports/next.config.js @@ -0,0 +1,2 @@ +const withImages = require('next-images') +module.exports = withImages() diff --git a/examples/with-asset-imports/package.json b/examples/with-asset-imports/package.json index e8ccdfb6..6509f494 100644 --- a/examples/with-asset-imports/package.json +++ b/examples/with-asset-imports/package.json @@ -7,8 +7,8 @@ "start": "next start" }, "dependencies": { - "babel-plugin-transform-assets-import-to-string": "^1.0.1", "next": "latest", + "next-images": "0.10.5", "react": "^16.0.0", "react-dom": "^16.0.0" },