mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-04 23:12:17 +02:00
Ensure webpack config is valid
This commit is contained in:
parent
cc11d6bfd6
commit
487e878b88
|
@ -54,6 +54,7 @@
|
|||
"node-sass": "^3.4.2",
|
||||
"nodemon": "^1.9.1",
|
||||
"nyc": "^11.0.3",
|
||||
"open": "0.0.5",
|
||||
"opn-cli": "^3.1.0",
|
||||
"postcss-cli": "^2.5.1",
|
||||
"sinon": "^2.4.0",
|
||||
|
@ -66,6 +67,7 @@
|
|||
"dependencies": {
|
||||
"classnames": "^2.2.5",
|
||||
"fuse.js": "^3.1.0",
|
||||
"opn": "^5.1.0",
|
||||
"redux": "^3.3.1"
|
||||
},
|
||||
"npmName": "choices.js",
|
||||
|
|
7049
src/scripts/dist/choices.js
vendored
7049
src/scripts/dist/choices.js
vendored
File diff suppressed because it is too large
Load diff
2
src/scripts/dist/choices.js.map
vendored
2
src/scripts/dist/choices.js.map
vendored
File diff suppressed because one or more lines are too long
4
src/scripts/dist/choices.min.js
vendored
4
src/scripts/dist/choices.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,14 +1,15 @@
|
|||
var path = require('path');
|
||||
var webpack = require('webpack');
|
||||
var Dashboard = require('webpack-dashboard');
|
||||
var DashboardPlugin = require('webpack-dashboard/plugin');
|
||||
var dashboard = new Dashboard();
|
||||
const path = require('path');
|
||||
const webpack = require('webpack');
|
||||
const Dashboard = require('webpack-dashboard');
|
||||
const DashboardPlugin = require('webpack-dashboard/plugin');
|
||||
|
||||
const dashboard = new Dashboard();
|
||||
|
||||
module.exports = {
|
||||
devtool: 'eval',
|
||||
entry: [
|
||||
'webpack-dev-server/client?http://localhost:3000',
|
||||
'./src/scripts/src/choices'
|
||||
'./src/scripts/src/choices',
|
||||
],
|
||||
output: {
|
||||
path: path.join(__dirname, 'dist'),
|
||||
|
@ -17,24 +18,33 @@ module.exports = {
|
|||
library: 'Choices',
|
||||
libraryTarget: 'umd',
|
||||
},
|
||||
eslint: {
|
||||
configFile: '.eslintrc'
|
||||
},
|
||||
plugins: [
|
||||
new DashboardPlugin(dashboard.setData),
|
||||
new webpack.HotModuleReplacementPlugin(),
|
||||
new webpack.DefinePlugin({
|
||||
'process.env': {
|
||||
'NODE_ENV': JSON.stringify('development')
|
||||
}
|
||||
})
|
||||
NODE_ENV: JSON.stringify('development'),
|
||||
},
|
||||
}),
|
||||
],
|
||||
module: {
|
||||
loaders: [{
|
||||
test: /\.js$/,
|
||||
rules: [
|
||||
{
|
||||
enforce: 'pre',
|
||||
test: /\.js?$/,
|
||||
include: path.join(__dirname, 'src/scripts/src'),
|
||||
exclude: /(node_modules|bower_components)/,
|
||||
loaders: ['babel', 'eslint-loader'],
|
||||
include: path.join(__dirname, 'src/scripts/src')
|
||||
}]
|
||||
}
|
||||
loader: 'eslint-loader',
|
||||
query: {
|
||||
configFile: '.eslintrc',
|
||||
},
|
||||
},
|
||||
{
|
||||
test: /\.js?$/,
|
||||
include: path.join(__dirname, 'src/scripts/src'),
|
||||
exclude: /(node_modules|bower_components)/,
|
||||
loader: 'babel-loader',
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue