mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* fix sourcemap fix relative path and pre publish build change travis wait all test run build and remove unused cpx * global test task modify publish script to accept options * appveyor run * different approach single test run * make it work the analytics test modify start demo shell script to use a different registry * sourcemap demo shell working * update readme and add install after any clean add registry option in start.sh script add develop and normal mode in demo shell add -d option in start.sh to point to the local components add -c option in build script to point to the local components
33 lines
828 B
JavaScript
33 lines
828 B
JavaScript
const webpackMerge = require('webpack-merge');
|
|
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
|
const commonConfig = require('./webpack.common.js');
|
|
const helpers = require('./helpers');
|
|
|
|
module.exports = webpackMerge(commonConfig, {
|
|
devtool: 'cheap-module-eval-source-map',
|
|
|
|
resolve: {
|
|
extensions: ['.ts', '.js'],
|
|
modules: [helpers.root('../ng2-components'), helpers.root('node_modules')]
|
|
},
|
|
|
|
output: {
|
|
path: helpers.root('dist'),
|
|
filename: '[name].js',
|
|
chunkFilename: '[id].chunk.js'
|
|
},
|
|
|
|
plugins: [
|
|
new ExtractTextPlugin('[name].css')
|
|
],
|
|
|
|
devServer: {
|
|
contentBase: helpers.root('dist'),
|
|
compress: true,
|
|
port: 3000,
|
|
historyApiFallback: true,
|
|
host: '0.0.0.0',
|
|
inline: true
|
|
}
|
|
});
|