不要把文件名起成webpack 会报错……Refusing to install webpack as a dependency of itself
2018-03-16
{ test: /\.css$/,
use: [ 'style-loader','css-loader', {
loader: 'postcss-loader',
options: {
plugins: [
require('autoprefixer')({
browsers:['last 5 versions']
})
]
} } ] }webpack 3.10.0 这样子配置前缀就会出来
use: [ 'style-loader','css-loader', {
loader: 'postcss-loader',
options: {
plugins: [
require('autoprefixer')({
browsers:['last 5 versions']
})
]
} } ] }webpack 3.10.0 这样子配置前缀就会出来
2018-03-15
这个可以用!!!
卸载默认的
npm uninstall webpack
全局安装
npm install webpack@3.5.3 -g
npm install webpack@3.5.3 --save-dev
卸载默认的
npm uninstall webpack
全局安装
npm install webpack@3.5.3 -g
npm install webpack@3.5.3 --save-dev
2018-03-14
{
test:/\.js$/,
loader:'babel-loader',
exclude:path.resolve(__dirname,"node_modules"),
include:path.resolve(__dirname,"src")
},
test:/\.js$/,
loader:'babel-loader',
exclude:path.resolve(__dirname,"node_modules"),
include:path.resolve(__dirname,"src")
},
2018-03-14
ERROR in Entry module not found: Error: Can't resolve './src' in 'F:\project\webpack\loader'
2018-03-14
webpack 4.1.1版本 运行命令提示需要安装webpack-cli 解决方法(任选其一):
1. npm install webpack-cli -D
2.在config配置文件中加入配置:mode: 'development'或者 mode: 'production'
module.exports={
mode: 'development',
......
}
1. npm install webpack-cli -D
2.在config配置文件中加入配置:mode: 'development'或者 mode: 'production'
module.exports={
mode: 'development',
......
}
2018-03-12