diff --git a/package.json b/package.json index ba5757a..04b4d7c 100644 --- a/package.json +++ b/package.json @@ -32,14 +32,14 @@ }, "devDependencies": { "@angular/animations": "^4.1.3", - "@angular/common": "4.1.1", - "@angular/compiler": "4.1.1", - "@angular/core": "4.1.1", - "@angular/forms": "4.1.1", - "@angular/http": "4.1.1", - "@angular/platform-browser": "4.1.1", - "@angular/platform-browser-dynamic": "4.1.1", - "@angular/router": "4.1.1", + "@angular/common": "4.1.3", + "@angular/compiler": "4.1.3", + "@angular/core": "4.1.3", + "@angular/forms": "4.1.3", + "@angular/http": "4.1.3", + "@angular/platform-browser": "4.1.3", + "@angular/platform-browser-dynamic": "4.1.3", + "@angular/router": "4.1.3", "@angularclass/hmr": "^1.2.2", "@angularclass/hmr-loader": "^3.0.2", "@ng-bootstrap/ng-bootstrap": "^1.0.0-alpha.22", @@ -48,12 +48,13 @@ "angular2-template-loader": "^0.6.2", "angular2-toaster": "^4.0.0", "angular2-ui-switch": "^1.2.0", - "autoprefixer": "^6.7.7", + "autoprefixer": "^7.1.1", "awesome-typescript-loader": "^3.1.2", "codelyzer": "^3.0.1", "copy-webpack-plugin": "^4.0.1", "core-js": "^2.4.1", "css-loader": "^0.28.0", + "cssnano": "^3.10.0", "extract-text-webpack-plugin": "^2.1.0", "file-loader": "^0.11.1", "html-loader": "^0.4.5", @@ -61,14 +62,17 @@ "jquery": "^3.2.1", "json-loader": "^0.5.4", "node-sass": "^4.5.2", - "postcss-loader": "^1.3.3", + "postcss-cssnext": "^2.11.0", + "postcss-import": "^10.0.0", + "postcss-loader": "^2.0.5", + "postcss-scss": "^1.0.0", "raw-loader": "^0.5.1", "reflect-metadata": "^0.1.10", "rimraf": "^2.6.1", "rxjs": "^5.2.0", "sass-loader": "^6.0.3", "shelljs": "^0.7.0", - "style-loader": "^0.17.0", + "style-loader": "^0.18.1", "ts-helpers": "^1.1.2", "tslint": "^5.2.0", "tslint-loader": "^3.4.3", diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 0000000..7606832 --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,8 @@ +module.exports = { + parser: 'postcss-scss', + plugins: { + 'postcss-import': {}, + 'postcss-cssnext': {browsers: ['last 2 version']}, + 'cssnano': {} + } +}; \ No newline at end of file diff --git a/webpack.config.js b/webpack.config.js index 9138a61..1bbf927 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -97,12 +97,7 @@ module.exports = function () { }, sassLoader: { //includePaths: [path.resolve(__dirname, "node_modules/foundation-sites/scss")] - }, - postcss: [ - autoprefixer({ - browsers: ['last 2 version'] - }) - ] + } } }), new CommonsChunkPlugin({