Skip to content

Commit

Permalink
fix(examples): fix in webpack3 examples (Semantic-Org#2561)
Browse files Browse the repository at this point in the history
  • Loading branch information
layershifter authored and Brandon Lawrence committed Mar 14, 2018
1 parent e9ec444 commit 7156522
Show file tree
Hide file tree
Showing 5 changed files with 1,319 additions and 538 deletions.
8 changes: 1 addition & 7 deletions examples/webpack3/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,7 @@
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-export-default-from",
["direct-import", { "modules": [
"semantic-ui-react", {
"name": "semantic-ui-react",
"indexFile": "semantic-ui-react/dist/es/index.js"
}
]}],
"lodash"
["lodash", {"id": ["lodash", "semantic-ui-react"]}]
],
"env": {
"development": {
Expand Down
53 changes: 29 additions & 24 deletions examples/webpack3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,39 @@
"react": "^16.2.0",
"react-dom": "^16.2.0",
"semantic-ui-less": "^2.2.12",
"semantic-ui-react": "^0.77.0"
"semantic-ui-react": "^0.78.2"
},
"devDependencies": {
"@babel/core": "^7.0.0-beta.34",
"@babel/preset-env": "^7.0.0-beta.34",
"autoprefixer": "7.1.6",
"babel-loader": "8.0.0-beta.0",
"@babel/core": "^7.0.0-beta.40",
"@babel/plugin-proposal-class-properties": "^7.0.0-beta.40",
"@babel/plugin-proposal-export-default-from": "^7.0.0-beta.40",
"@babel/preset-env": "^7.0.0-beta.40",
"@babel/preset-react": "^7.0.0-beta.40",
"autoprefixer": "^8.0.0",
"babel-loader": "^8.0.0-beta.0",
"babel-plugin-lodash": "^3.3.2",
"babel-plugin-transform-react-remove-prop-types": "^0.4.10",
"case-sensitive-paths-webpack-plugin": "2.1.1",
"chalk": "1.1.3",
"cross-env": "^5.1.1",
"css-loader": "0.28.7",
"extract-text-webpack-plugin": "3.0.2",
"file-loader": "1.1.5",
"fs-extra": "3.0.1",
"html-webpack-plugin": "2.29.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.13",
"case-sensitive-paths-webpack-plugin": "^2.1.1",
"chalk": "^2.3.1",
"cross-env": "^5.1.3",
"css-loader": "^0.28.10",
"extract-text-webpack-plugin": "^3.0.2",
"file-loader": "^1.1.9",
"fs-extra": "^5.0.0",
"html-webpack-plugin": "2.30.1",
"less": "^2.7.2",
"less-loader": "^4.0.5",
"postcss-flexbugs-fixes": "3.2.0",
"postcss-loader": "2.0.8",
"react-dev-utils": "^4.2.1",
"style-loader": "0.19.0",
"uglifyjs-webpack-plugin": "^1.1.2",
"url-loader": "0.6.2",
"webpack": "3.8.1",
"webpack-bundle-analyzer": "^2.9.1",
"webpack-dev-server": "2.9.4",
"webpack-manifest-plugin": "1.3.2"
"postcss-flexbugs-fixes": "^3.3.0",
"postcss-loader": "^2.1.0",
"react-dev-utils": "^5.0.0",
"style-loader": "^0.20.2",
"uglifyjs-webpack-plugin": "^1.2.0",
"url-loader": "^0.6.2",
"webpack": "^3.11.0",
"webpack-bundle-analyzer": "^2.10.0",
"webpack-dev-server": "^2.11.1",
"webpack-manifest-plugin": "^1.3.2",
"webpack-merge": "^4.1.1"
},
"scripts": {
"start": "node scripts/start.js",
Expand Down
2 changes: 0 additions & 2 deletions examples/webpack3/scripts/build.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


// Do this as the first thing so that any code reading it knows the right env.
process.env.BABEL_ENV = 'production'
process.env.NODE_ENV = 'production'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '~heading.less';

.container {
margin-top: @relative64px;
padding-top: @relative64px;
}
Loading

0 comments on commit 7156522

Please sign in to comment.