Skip to content

Commit

Permalink
switch to webpack2
Browse files Browse the repository at this point in the history
  • Loading branch information
dfilatov committed Apr 5, 2017
1 parent 5805139 commit 2dd71f6
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .babelrc
@@ -1,4 +1,4 @@
{
"plugins": ["transform-object-rest-spread"],
"presets": ["es2015-minimal"]
"presets": [["es2015", { "loose": true }]]
}
4 changes: 1 addition & 3 deletions debug/webpack.debug.config.js
@@ -1,5 +1,3 @@
var jsLoaders = ['babel'];

module.exports = {
entry : __dirname + '/vidom.js',
output : {
Expand All @@ -9,7 +7,7 @@ module.exports = {
},
module : {
loaders: [
{ test : /\.js$/, loaders : jsLoaders }
{ test : /\.js$/, loader : 'babel-loader' }
]
}
};
2 changes: 1 addition & 1 deletion demo/.babelrc
@@ -1,4 +1,4 @@
{
"plugins": ["transform-object-rest-spread", "vidom-jsx"],
"presets": ["es2015-minimal"]
"presets": [["es2015", { "loose": true }]]
}
4 changes: 1 addition & 3 deletions demo/webpack.demo.config.js
@@ -1,5 +1,3 @@
var jsLoaders = ['babel'];

module.exports = {
entry : __dirname + '/demo.js',
output : {
Expand All @@ -9,7 +7,7 @@ module.exports = {
},
module : {
loaders: [
{ test : /\.js$/, loaders : jsLoaders }
{ test : /\.js$/, loader : 'babel-loader' }
]
},
resolve : {
Expand Down
9 changes: 5 additions & 4 deletions package.json
Expand Up @@ -30,7 +30,6 @@
"babel-plugin-vidom-jsx": "0.5.0",
"babel-preset-es2015": "6.24.0",
"babel-preset-es2015-loose-rollup": "7.0.0",
"babel-preset-es2015-minimal": "2.1.0",
"babelify": "7.3.0",
"browserify": "14.1.0",
"codemirror": "5.23.0",
Expand All @@ -47,11 +46,13 @@
"rollup-plugin-uglify": "1.0.1",
"simulate": "git://github.com/dfilatov/simulate.js",
"sinon": "1.17.4",
"style-loader": "0.13.1",
"style-loader": "0.16.1",
"uglify-js": "2.8.21",
"uglifyjs-webpack-plugin": "0.4.0",
"vow": "0.4.13",
"vow-node": "0.3.0",
"webpack": "1.14.0",
"webpack-dev-server": "1.16.2",
"webpack": "2.3.3",
"webpack-dev-server": "2.4.2",
"zuul": "3.11.1"
},
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion playground/.babelrc
@@ -1,4 +1,4 @@
{
"plugins": ["transform-object-rest-spread", "vidom-jsx"],
"presets": ["es2015-minimal"]
"presets": [["es2015", { "loose": true }]]
}
2 changes: 1 addition & 1 deletion playground/index.js
Expand Up @@ -5,7 +5,7 @@ import 'codemirror/mode/jsx/jsx';
import 'codemirror/lib/codemirror.css';
import 'codemirror/theme/night.css';
import vidomJsx from 'babel-plugin-vidom-jsx';
import code from '!raw!./code.js';
import code from '!raw-loader!./code.js';

const ERROR_TIMEOUT = 300;

Expand Down
10 changes: 4 additions & 6 deletions playground/webpack.config.js
@@ -1,4 +1,4 @@
var webpack = require('webpack');
var UglifyJSPlugin = require('uglifyjs-webpack-plugin');

module.exports = {
entry : __dirname + '/index.js',
Expand All @@ -9,8 +9,8 @@ module.exports = {
},
module : {
loaders: [
{ test : /\.js$/, loader : 'babel' },
{ test: /\.css$/, loaders : ['style', 'css'] }
{ test : /\.js$/, loader : 'babel-loader' },
{ test: /\.css$/, loaders : ['style-loader', 'css-loader'] }
]
},
resolve : {
Expand All @@ -19,8 +19,6 @@ module.exports = {
}
},
plugins : [
new webpack.DefinePlugin({
'process.env.NODE_ENV': `"${process.env.NODE_ENV || 'development'}"`
})
new UglifyJSPlugin()
]
};

0 comments on commit 2dd71f6

Please sign in to comment.