Wondering what’s next for npm?Check out our public roadmap! »

easywebpack-vue

4.5.0 • Public • Published

easywebpack-vue

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Webpack client render and server side render build solution for Vue

Featues

easywebpack

see easywebpack

Documents

Install

$ npm i easywebpack-vue --save-dev

Usage

webpack.config.js

const easywebpack = require('easywebpack-vue');
const webpack = easywebpack.webpack;
const merge = easywebpack.merge;
const baseWebpackConfig = easywebpack.getWebpackConfig({
    env, // support dev, test, prod 
    target : 'web', // browser mode build
    entry:{
        app: 'src/index.js'
    }
});
module.exports = merge(baseWebpackConfig, {
   
})

use webpack command build

webpack --config webpack.config.js

base easywebpacack-cli build mode

const webpackConfig = require('./webpack.config.js');
 
if (process.env.NODE_SERVER) {
  // development mode: webpack building and start webpack hot server
  easywebpack.server(config);
} else {
  // build file to disk
  easywebpack.build(config);
}

Example

Questions & Suggestions

Please open an issue here.

License

MIT

Install

npm i easywebpack-vue

DownloadsWeekly Downloads

348

Version

4.5.0

License

MIT

Unpacked Size

15.6 kB

Total Files

12

Last publish

Collaborators

  • avatar