Why doesn't w2ui when assembling Webpack'ohms?

W2ui does not work if you do build webpack'ohms. When connecting w2ui script on the html page, everything is fine.
The contents of the file with import library:
require('../libs/jquery/jquery-ui.css');
window.$ = window.jQuery = require('jquery');
require('jquery.browser');
require('jquery-ui');
require('w2ui/w2ui-1.4.2.min');
require('w2ui/w2ui-1.4.2.min.css');
require('../libs/gwtk.css');
require('../libs/gwtkse.js');


webpack.config:
var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var CommonsChunkPlugin = require("webpack/lib/optimize/CommonsChunkPlugin");
var HtmlWebpackPlugin = require('html-webpack-plugin');
var CleanWebpackPlugin = require('clean-webpack-plugin');
var precss = require('precss');
var autoprefixer = require('autoprefixer');
var CopyWebpackPlugin = require('copy-webpack-plugin');

module.exports = {
 entry: {
 'app': './src/app.js'
},
 output: {
 path: './build',
 filename: `[name].min.js`,
 chunkFilename: '[name].min.js',
 // publicPath: 'http://localhost:3000/'
},
 devServer: {
 outputPath: './dist',
 port: 3000,
 hot: true
},
 resolve: {
 extensions: [", '.js']
},
 // devtool: 'source-map',
 module: {
 loaders: [
 {test: /\.js$/, loader: 'babel', exclude: /node_modules/},
 {test: /\.css$/, loader: ExtractTextPlugin.extract("css?sourceMap!postcss")},
 {test: /\.less$/, loader: ExtractTextPlugin.extract('css?sourceMap!postcss!less?sourceMap')},
 {test: /\.woff(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/font-woff"},
 {test: /\.woff2(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/font-woff"},
 {test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/octet-stream"},
 {test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: "file"},
 {test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=image/svg+xml"},
 {test: /\.(png|jpg)$/, loader: 'file?name=img/[name].[ext]'},
 {test: /\.html$/, loader: 'raw'}
]
},
 postcss: function () {
 return [precss, autoprefixer];
},
 plugins: [
 new CleanWebpackPlugin('./build', {root: `${__dirname}/..`}),
 new ExtractTextPlugin(`[name].min.css`, {allChunks: true}),
 new HtmlWebpackPlugin({template: './index.html'})
]
};
July 8th 19 at 11:35
1 answer
July 8th 19 at 11:37
Helped this question and Script-loader

Find more questions by tags JavaScriptWebpack