UNPKG

i-rubik

Version:

A Vue.js 2.0+ UI Components Framework

56 lines (55 loc) 1.27 kB
const webpack = require('webpack') const nib = require('nib') const path = require('path') const projectRoot = path.resolve(__dirname, '../') const ExtractTextPlugin = require('extract-text-webpack-plugin') const config = require('./config') module.exports = { devtool: false, watch: process.env.TARGET === 'dev', entry: { app: './src/index.js' }, // devtool: config.build.productionSourceMap ? '#source-map' : false, output: { path: path.resolve(__dirname, '../dist'), publicPath: '/dist/' }, node: { fs: 'empty' }, module: { loaders: [ { test: /\.vue$/, loader: 'vue-loader' }, { test: /\.js$/, loader: 'babel-loader', include: projectRoot, exclude: /node_modules/ }, { test: /\.styl$/, use: ExtractTextPlugin.extract({ fallback: "style-loader", use: "css-loader!stylus-loader" }) // options: { // use: [nib()], // import: ['~nib/lib/nib/index.styl'], // "include css": true // } } ] }, plugins: [ new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false } }), new ExtractTextPlugin('rubik.min.css') ] }