Skip to content
This repository has been archived by the owner on Dec 6, 2021. It is now read-only.

Releases: egoist/poi

v12.0.0-beta.7

06 Dec 15:38
Compare
Choose a tag to compare
v12.0.0-beta.7 Pre-release
Pre-release

🔥🔥🔥 New Features 🔥🔥🔥

Custom Public Folder

Added --public-folder <folder> and publicFolder config option, serve static files in another folder instead of ./public, can be turned off by setting to false or --no-public-folder

Better support for multi-page application

Added pages config option:

module.exports = {
  pages: {
    foo: './foo.js', // equivalent to { entry: './foo.js' }
    bar: {
      entry: string[] | string,
      // and all options for html-webpack-plugin are supported
      // `filename` is automatically set to `${entryName}.html` which is `bar.html` in this case
    }
  }
}

With above config, Poi will generate foo.html and bar.html.

When using pages option, you won't be able to use entry option.

Configure webpack directly

Instead of using chainWebpack you can provide an object or a function as the value of configureWebpack option:

module.exports = {
  configureWebpack(config) {
    config.resolve.alias.push('.mdx')
    // optionally `return config`
  },

  // or object
  // merged using `webpack-merge` module
  configureWebpack: {
    resolve: {
      alias: ['.mdx']
    }
  }
}

Access Public URL

You can use process.env.PUBLIC_URL to access webpackConfig.output.publicPath in your app code, in HTML file, use envs.PUBLIC_URL instead, e.g. <%= envs.PUBLIC_URL %>favicon.ico

v11.0.0-alpha.14

12 Sep 09:49
Compare
Choose a tag to compare
v11.0.0-alpha.14 Pre-release
Pre-release

This is not really published on npm, lerna failed...

v10.0.0-rc.0

09 Apr 06:26
Compare
Choose a tag to compare
v10.0.0-rc.0 Pre-release
Pre-release

This might break things.

Option changes

See https://github.com/egoist/poi/blob/master/docs/options.md

Plugins

Presets are now Plugins, and the official ones are published under @poi org on npm, e.g. @poi/plugin-storybook

10.0.0-beta.12

04 Apr 02:58
Compare
Choose a tag to compare
10.0.0-beta.12 Pre-release
Pre-release

The first PUBLIC BETA release for Poi 10.

The new docs are here: https://github.com/egoist/poi/tree/x/docs (WIP)

Highlights:

  • Webpack 4. Y'all know that this is coming.
  • Simplified options. Some are removed, and some are renamed.
  • Presets are now Plugins, and the official ones are published under @poi org on npm, eg: @poi/plugin-storybook
  • No plugin is required for React, however you do need a custom .babelrc file for adding HMR support with react-hot-loader.
  • Automatically load .env.{process.env.NODE_ENV} file.
  • ...

Note that new packages are published under next tag on npm, which means you can install Poi 10 by:

yarn add poi@next --dev

v10.0.0-alpha.0

08 Feb 10:44
Compare
Choose a tag to compare
v10.0.0-alpha.0 Pre-release
Pre-release

Preview for Poi v10, bugs and crashes are expected 😅

Try it with:

yarn add poi@next --dev

Note that all presets are renamed to plugin, eg. poi-preset-buble is now poi-plugin-buble

Also there're some breaking changes in the plugin API, will add notes about it in following alpha versions.

v9.6.8

26 Dec 07:42
Compare
Choose a tag to compare

This release reverted the uglifyjs-webpack-plugin we added in previous release which could broken in some cases, I tested it with a codemirror and failed.

v9.6.3

21 Dec 15:12
Compare
Choose a tag to compare

Deprecate --component in favor of --library.

v9.6.0

13 Dec 08:58
Compare
Choose a tag to compare

API - Added createWebpackConfig (doc)

v9.5.2

15 Nov 14:45
Compare
Choose a tag to compare

New features:

Added --component flag to make bundling components in CommonJS or UMD format even easier. (doc)

Basically:

  • poi build --component is equivalent to poi build --format cjs --no-html --no-sourceMap
  • poi build --component Vuex is equivalent to poi build --format umd --module-name Vuex --no-html --no-sourceMap

2017-11-15 10 38 59


--no-clear is only needed for the screenshot to prevent from clearing console logs.

v9.5.1

07 Nov 11:15
Compare
Choose a tag to compare

New features:

  • Restart Poi when config file (by default) and specific files (via restartOnFileChanges) are modified. (doc)
  • Add progress option to control progress bar and always disable it when process.env.CI is true.(doc)