designeo-webpack
## Support
Last updated 2 years ago by designeo .
ISC · Repository · Original npm · Tarball · package.json
$ cnpm install designeo-webpack 
SYNC missed versions from official npm registry.

Designeo webpack

Support

  • less, sass
  • js, vue
  • env production:
    • minification
  • env dev
    • sourcemaps

Setup

./package.json

"scripts": {
    "dev": "webpack --watch --hide-modules",
    "build": "webpack --hide-modules",
    ...
},
"devDepedencies": {
    ...
    "designeo-webpack": "git+ssh://git@git.designeo.cz:designeo/designeo-webpack#1.0.2",
    ...
}

Symfony Preset

./webpack.config.js

const desWebpack = require('designeo-webpack');

module.exports = desWebpack.symfony(__dirname, ({env}) => {
  entry: {
    admin: [
        './app/Resources/js/admin.js',
        './app/Resources/less/admin.less',
    ],
  },
});

Generic setup

./webpack.config.js

const desWebpack = require('designeo-webpack');
const path = require('path');

module.exports = desWebpack.setup(({env}) => {
  entry: {
    admin: [  # bundle name (you can have multiple bundles), bundle name is used as output name
        './app/Resources/js/admin.js',  # all asset entrypoints for this bundle (js/less/sass..)
        './app/Resources/less/admin.less',
    ],
  },
  output: {
    filename: `./js/[name].js`, # output file naming withing output directory
    path: path.resolve(__dirname, './web/'),  # output directory
    publicPath: '/', # base web path
  },
});

Current Tags

  • 1.3.0                                ...           latest (2 years ago)

1 Versions

  • 1.3.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |